所以当我这样做时dpkg --get-selections | grep vmware
我得到...
vmware-tools-core install
vmware-tools-esx-nox install
vmware-tools-foundation install
vmware-tools-guestlib purge
vmware-tools-libraries-nox install
vmware-tools-plugins-autoupgrade install
vmware-tools-plugins-deploypkg install
vmware-tools-plugins-guestinfo install
vmware-tools-plugins-hgfsserver install
vmware-tools-plugins-powerops install
vmware-tools-plugins-timesync install
vmware-tools-plugins-vix install
vmware-tools-plugins-vmbackup install
vmware-tools-services install
我想删除这些。例如,当我这样做时...
sudo apt-get -f remove vmware-tools-core
我明白……
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:
linux-image-virtual : Depends: linux-image-3.2.0-57-virtual but it is not going to be installed
linux-server : Depends: linux-headers-server (= 3.2.0.56.66) but 3.2.0.57.68 is to be installed
vmware-tools-esx-nox : Depends: vmware-tools-core (>= 9.0.5) but it is not going to be installed
vmware-tools-plugins-autoupgrade : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-deploypkg : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-guestinfo : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-hgfsserver : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-powerops : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-timesync : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-vix : Depends: vmware-tools-core-9.0.5
vmware-tools-plugins-vmbackup : Depends: vmware-tools-core-9.0.5
vmware-tools-services : Depends: vmware-tools-core-9.0.5
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
如果我跑,apt-get -f install
我会……
After this operation, 36.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 464964 files and directories currently installed.)
Unpacking linux-image-3.2.0-57-virtual (from .../linux-image-3.2.0-57-virtual_3.2.0-57.87_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-57-virtual_3.2.0-57.87_amd64.deb (--unpack):
failed in write on buffer copy for backend dpkg-deb during `./boot/abi-3.2.0-57-virtual': No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-57-virtual /boot/vmlinuz-3.2.0-57-virtual
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-57-virtual /boot/vmlinuz-3.2.0-57-virtual
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.2.0-57-virtual_3.2.0-57.87_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
johnmlocklear@vweb-dev:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
以下是 dpkg -l 'linux*' 的输出http://pastie.org/8528966
我的目标是删除 vmware tools 软件包。如能提供任何帮助,不胜感激...
答案1
你的问题有两个。首先,你有/boot
很多 Scrub。你需要 Scrub!运行dpkg -l 'linux*'
并删除旧的未使用的内核。这将解决问题sudo apt-get -f install
。下一步你需要一举删除所有软件包:
sudo apt-get remove linux-image-server linux-server linux-image-3.2.0-48-virtual linux-image-3.2.0-51-generic linux-image-3.2.0-51-virtual linux-image-3.2.0-52-generic linux-image-3.2.0-52-virtual linux-image-3.2.0-53-generic linux-image-3.2.0-53-virtual linux-image-3.2.0-56-generic linux-image-3.2.0-56-virtual
sudo apt-get -f install
sudo apt-get autoremove vmware-tools-esx-nox vmware-tools-services vmware-tools-plugins-* vmware-tools-core
sudo apt-get install linux-server linux-headers-server
这应该可以解决你的问题
答案2
我有同样的问题,我发现了一些有用的信息地点 (是法语的)。
当我执行di -f
命令时,我发现所有的 i 节点都被使用(100%,如果我说错了,请纠正我)。
因此您应该尝试清空/usr/src
并看看是否有效。
编辑:刚刚测试了这个解决方案并且它有效,我删除了一些文件夹,/urs/src
然后我就可以执行apt-get -f install
命令了。