首先,我想去掉这条信息:
The following packages have unmet dependencies:
linux-4.4-latest : Depends: linux-image-4.4.154-111-rockchip-g39b306a41b2d but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).那么我想释放/引导/
这个命令告诉我可以删除什么:
root@rockpi:/boot# sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`
linux-image-4.4.154-59-rockchip-g5e70f14
linux-image-4.4.154-95-rockchip-gd2ab1f26e1b3当前引导包含:
/boot# ll
total 72698
drwxr-xr-x 5 root root 16384 Oct 10 21:17 ./
drwxr-xr-x 25 root root 4096 Aug 13 18:46 ../
-rwxr-xr-x 1 root root 4786387 Jun 22 07:37 System.map-4.4.154-110-rockchip-gcef30e88a9f5*
-rwxr-xr-x 1 root root 4707224 Dec 14 2018 System.map-4.4.154-59-rockchip-g5e70f14*
-rwxr-xr-x 1 root root 4567572 Oct 21 2019 System.map-4.4.154-95-rockchip-gd2ab1f26e1b3*
-rwxr-xr-x 1 root root 42 Jul 27 20:34 cmdline.txt*
-rwxr-xr-x 1 root root 155639 Jun 22 07:37 config-4.4.154-110-rockchip-gcef30e88a9f5*
-rwxr-xr-x 1 root root 152995 Dec 14 2018 config-4.4.154-59-rockchip-g5e70f14*
-rwxr-xr-x 1 root root 155489 Oct 21 2019 config-4.4.154-95-rockchip-gd2ab1f26e1b3*
drwxr-xr-x 5 root root 2048 Oct 10 21:17 dtbs/
drwxr-xr-x 2 root root 2048 Oct 10 21:17 extlinux/
-rwxr-xr-x 1 root root 1807 Oct 21 2019 hw_intfc.conf*
drwxr-xr-x 2 root root 2048 Nov 19 2019 overlays/
-rwxr-xr-x 1 root root 20371464 Jun 22 07:37 vmlinuz-4.4.154-110-rockchip-gcef30e88a9f5*
-rwxr-xr-x 1 root root 20006920 Dec 14 2018 vmlinuz-4.4.154-59-rockchip-g5e70f14*
-rwxr-xr-x 1 root root 19496968 Oct 21 2019 vmlinuz-4.4.154-95-rockchip-gd2ab1f26e1b3*我的最终目标是更新最新的内核。
$ sudo apt-get install -y linux-4.4-latest # Will update kernel请帮帮忙。
发布于 2020-10-10 22:33:38
我的/boot分区是100%满的。
我以前尝试过安装最新的linux内核,但是由于/boot中没有空间,所以它的依赖性没有得到满足。
因此,首先我删除了linux-4.4-latest sudo apt purge linux-4.4-latest,这使我摆脱了umet依赖项错误,成功地执行了下面的清除命令
I运行sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -vuname -r`,以了解还可以删除哪些内容
一些旧的linux内核
然后我运行了sudo apt purge old-linux-kernel
这给了我额外的空间然后我终于跑了
sudo apt autoremove 它摆脱了更多的kbs的数据,我能够更新到最新的linux内核。
https://askubuntu.com/questions/1281756
复制相似问题