我尝试安装一些包,但我得到这个:
mail:/home/roland# apt-get install libapache2-mod-geoip Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libapache2-mod-geoip : Depends: libgeoip1 (>= 1.4.7~beta3+dfsg) but it is not going to be installed linux-image-2.6-amd64 : Depends: linux-image-2.6.32-5-amd64 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
然后我尝试,错误提示:
mail:/home/roland# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libatk1.0-0 libts-0.0-0 libmime-types-perl libc-client2007b libgtk2.0-common libxfixes3 libgsf-1-common hicolor-icon-theme libfile-remove-perl libxcomposite1 automake1.4 libltdl3-dev libmd5-perl libilmbase6 libatk1.0-data djvulibre-desktop libdirectfb-1.0-0 fam libxinerama1 libcroco3 libopenexr6 libmail-box-perl libdjvulibre21 openssl-blacklist libdb4.5 libsysfs2 libbeecrypt6 libxdamage1 libobject-realize-later-perl libuser-identity-perl libxcursor1 portmap libxrandr2 libltdl3 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: linux-image-2.6.32-5-amd64 Suggested packages: linux-doc-2.6.32 The following NEW packages will be installed: linux-image-2.6.32-5-amd64 0 upgraded, 1 newly installed, 0 to remove and 168 not upgraded. 154 not fully installed or removed. Need to get 0 B/28,7 MB of archives. After this operation, 100 MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... (Reading database ... 38090 files and directories currently installed.) Unpacking linux-image-2.6.32-5-amd64 (from .../linux-image-2.6.32-5-amd64_2.6.32-41_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/linux-image-2.6.32-5-amd64_2.6.32-41_amd64.deb (--unpack): failed in write on buffer copy for backend dpkg-deb during `./lib/modules/2.6.32-5-amd64/kernel/drivers/net/usb/catc.ko': No space left on device configured to not write apport reports dpkg-deb: subprocess paste killed by signal (Broken pipe) Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.26-2-amd64 Updating /boot/grub/menu.lst ... done Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 Errors were encountered while processing: /var/cache/apt/archives/linux-image-2.6.32-5-amd64_2.6.32-41_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
我认为这是真正的错误:
failed in write on buffer copy for backend dpkg-deb during `./lib/modules/2.6.32-5-amd64/kernel/drivers/net/usb/catc.ko': No space left on device
这里是分区列表:
mail:/home/roland# di Filesystem Mount Mebis Used Avail %Used fs Type /dev/sda1 / 326,6 283,4 26,4 92% ext3 udev /dev 10,0 0,1 9,9 1% tmpfs tmpfs /dev/shm 4003,5 0,0 4003,5 0% tmpfs /dev/sda9 /home 249825,7 67012,7 170122,6 32% ext3 tmpfs /lib/init/rw 4003,5 0,0 4003,5 0% tmpfs /dev/sda8 /tmp 372,2 10,5 342,5 8% ext3 /dev/sda5 /usr 4694,2 913,6 3542,2 25% ext3 /dev/sda6 /var 2818,1 565,0 2110,0 25% ext3
你知道这个问题的解决scheme吗?
安装过程中,您的空间不足。 目录“/ lib / modules”是“/”挂载的一部分,它有26MB的空闲空间。
这似乎很奇怪,因为你似乎有(我会想)在/ var中有足够的磁盘空间来安装软件包。 不过,试试吧
apt-get autoremove apt-get autoclean
首先,然后尝试安装内核。 这将删除apt-get引用的旧包,然后删除可能占用空间的任何未使用的caching.deb文件。
如果你之前没有select/取消内核,那么你现在还没有正确安装内核,这有点奇怪。