要装rsync,一直提示这个错误:
The following packages have unmet dependencies:
linux-image-generic : Depends: linux-image-4.4.0-174-generic but it is not going to be installed or linux-image-unsigned-4.4.0-174-generic but it is not going to be installed
查了一轮以为是系统版本问题,用的还是旧版ubuntu Server 16.04,打算升级算了,使用命令
sudo apt-get upgrade提示也是一样的错误,这下我发现肯定哪里不对劲了,因此搜索一番,发现是/boot 分区空间占用100%的问题,如下图:
进入/boot 文件夹,
查看所有image版本
dpkg --get-selections |grep linux-image
查看系统目前使用的版本
uname -a
删除那些没用的版本,删除前建议将这些文件备份到另一个文件夹里
sudo rm 内核文件名称
腾出空间之后,使用autoremove自动卸载不用的内核文件
sudo apt-get autoremove
重新建立引导
sudo update-grub
修复
sudo apt-get -f install