我在软件更新程序中进行每日更新时遇到了一个错误。它显示如下信息:
我尝试在终端中输入“sudo apt-get clean”,但仍然收到这个消息。我阅读的所有页面似乎都是给有经验的Ubuntu用户的。我正在运行Ubuntu 12.10。我想升级到13.04,但我知道我必须先完成这些步骤。
这是在终端中输入“cat /etc/fstab”的输出:
而且
The upgrade needs a total of 25.3 M free space on disk `/boot`.
Please free at least an additional 25.3 M of disk space on `/boot`.
Empty your trash and remove temporary packages of former installations
using `sudo apt-get clean`.
我尝试在终端中输入“sudo apt-get clean”,但仍然收到这个消息。我阅读的所有页面似乎都是给有经验的Ubuntu用户的。我正在运行Ubuntu 12.10。我想升级到13.04,但我知道我必须先完成这些步骤。
这是在终端中输入“cat /etc/fstab”的输出:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/ubuntu-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=fa55c082-112d-4b10-bcf3-e7ffec6cebbc /boot ext2 defaults 0 2
/dev/mapper/ubuntu-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
matty@matty-G41M-ES2L:~$
df -h
的输出结果:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu-root 915G 27G 842G 4% /
udev 984M 4.0K 984M 1% /dev
tmpfs 397M 1.1M 396M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 992M 1.8M 990M 1% /run/shm
none 100M 52K 100M 1% /run/user
/dev/sda1 228M 222M 0 100% /boot
matty@matty-G41M-ES2L:~$
而且
dpkg -l | grep linux-image
的结果是:ii linux-image-3.5.0-17-generic 3.5.0-17.28 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-18-generic 3.5.0-18.29 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-19-generic 3.5.0-19.30 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-21-generic 3.5.0-21.32 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-22-generic 3.5.0-22.34 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-23-generic 3.5.0-23.35 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-24-generic 3.5.0-24.37 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-25-generic 3.5.0-25.39 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-26-generic 3.5.0-26.42 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
iF linux-image-3.5.0-28-generic 3.5.0-28.48 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
df -h
和ls -l /boot
的输出吗? - Alaa Alicat /etc/fstab
。将输出复制并添加到您的问题中(您可以编辑您的问题)。同时,复制df -h
和dpkg -l | grep linux-image
的输出。 - Alaa Ali/boot
分区中所有额外的linux-image...
文件占用了空间 - 你只有6MB的可用空间。使用sudo dpkg -P purge 'older_linux_image_filename'
命令删除除最新版本(3.5.0-28.48和3.5.0-26.42)以外的所有版本。这样应该可以让你进行更新/升级操作。 - douggrouname -r
的输出是什么? - Alaa Alisudo apt-get autoremove
来解决这个问题。 - Juampy NR