所以我尝试做sudo apt-get purge samba
它给了我
kevin@Server:~$ sudo apt-get purge samba
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-extra-3.16.0-50-generic : Depends: linux-image-3.16.0-50-generic bu t it is not going to be installed
linux-image-generic-lts-utopic : Depends: linux-image-3.16.0-50-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).
所以我决定apt-get -f install
也这么做apt-get install linux-image-3.16.0-50-generic
两者都会导致错误,错误信息如下:
sudo apt-get install linux-image-extra-3.16.0-50-generic
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-extra-3.16.0-50-generic : Depends: linux-image-3.16.0-50-generic but it is not going to be installed
linux-image-generic-lts-utopic : Depends: linux-image-3.16.0-50-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
编辑
如果我这样做,sudo apt-get -f install
我会得到以下结果
Unpacking linux-image-3.16.0-50-generic (3.16.0-50.67~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-50-generic_3.16.0-50.67~14.04.1_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-3.16.0-50-generic' to '/boot/vmlinuz-3.16.0-50-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.16.0-50-generic /boot/vmlinuz-3.16.0-50-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-50-generic /boot/vmlinuz-3.16.0-50-generic
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.16.0-50-generic_3.16.0-50.67~14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我该怎么办?我完全不知所措……
答案1
您是否设置了单独的启动分区?
看起来您遇到了磁盘已满错误,不是吗?
无法将“./boot/vmlinuz-3.16.0-50-generic”的提取数据复制到“/boot/vmlinuz-3.16.0-50-generic.dpkg-new”:写入失败(设备上没有剩余空间)未写入任何 apport 报告,因为错误消息表明磁盘已满错误
你有没有尝试过?:
sudo apt-get autoremove
它将从 /boot 中删除旧的内核映像我认为这是解决方案