TL; DR
从18.04.1升级到18.04.2后,我无法强迫我的ubuntu服务器将内核升级到相应的4.18版本。
历史背景
昨天我跑步
sudo apt upgrade
并且在其中一个次要文件上发生了冲突(我认为是/etc/issue.net
)。不幸的是,在解决该冲突期间,我不小心关闭了腻子...当我重新登录时,我在apt
数据库上有一个锁。我重新启动服务器并执行
sudo dpkg --configure -a
然后sudo apt upgrade
一切顺利。重新启动服务器后,在欢迎消息中看到系统已更新,但内核仍为4.15版本。
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-45-generic x86_64)
到目前为止我尝试过的
我尝试了可以在Internet上找到的所有解决方案,但没有一个帮助您:
rychu@RychuSRV:~$ sudo apt update
Hit:1 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 https://download.docker.com/linux/ubuntu bionic InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 177 kB in 1s (161 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
rychu@RychuSRV:~$ sudo apt-get install linux-image-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-generic is already the newest version (4.15.0.45.47).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rychu@RychuSRV:~$ sudo apt-get install linux-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-generic is already the newest version (4.15.0.45.47).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rychu@RychuSRV:~$ uname -r && dpkg --get-selections linux
4.15.0-45-generic
linux-base install
linux-firmware install
linux-generic install
linux-headers-4.15.0-45 install
linux-headers-4.15.0-45-generic install
linux-headers-generic install
linux-image-4.15.0-23-generic deinstall
linux-image-4.15.0-29-generic deinstall
linux-image-4.15.0-30-generic deinstall
linux-image-4.15.0-32-generic deinstall
linux-image-4.15.0-33-generic deinstall
linux-image-4.15.0-34-generic deinstall
linux-image-4.15.0-36-generic deinstall
linux-image-4.15.0-38-generic deinstall
linux-image-4.15.0-39-generic deinstall
linux-image-4.15.0-42-generic deinstall
linux-image-4.15.0-43-generic install
linux-image-4.15.0-44-generic install
linux-image-4.15.0-45-generic install
linux-image-generic install
linux-modules-4.15.0-23-generic deinstall
linux-modules-4.15.0-29-generic deinstall
linux-modules-4.15.0-30-generic deinstall
linux-modules-4.15.0-32-generic deinstall
linux-modules-4.15.0-33-generic deinstall
linux-modules-4.15.0-34-generic deinstall
linux-modules-4.15.0-36-generic deinstall
linux-modules-4.15.0-38-generic deinstall
linux-modules-4.15.0-39-generic deinstall
linux-modules-4.15.0-42-generic deinstall
linux-modules-4.15.0-43-generic install
linux-modules-4.15.0-44-generic install
linux-modules-4.15.0-45-generic install
linux-modules-extra-4.15.0-23-generic deinstall
linux-modules-extra-4.15.0-29-generic deinstall
linux-modules-extra-4.15.0-30-generic deinstall
linux-modules-extra-4.15.0-32-generic deinstall
linux-modules-extra-4.15.0-33-generic deinstall
linux-modules-extra-4.15.0-34-generic deinstall
linux-modules-extra-4.15.0-36-generic deinstall
linux-modules-extra-4.15.0-38-generic deinstall
linux-modules-extra-4.15.0-39-generic deinstall
linux-modules-extra-4.15.0-42-generic deinstall
linux-modules-extra-4.15.0-43-generic install
linux-modules-extra-4.15.0-44-generic install
linux-modules-extra-4.15.0-45-generic install
rychu@RychuSRV:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-45-generic
Found initrd image: /boot/initrd.img-4.15.0-45-generic
Found linux image: /boot/vmlinuz-4.15.0-44-generic
Found initrd image: /boot/initrd.img-4.15.0-44-generic
Found linux image: /boot/vmlinuz-4.15.0-43-generic
Found initrd image: /boot/initrd.img-4.15.0-43-generic
Adding boot menu entry for EFI firmware configuration
done
rychu@RychuSRV:~$ sudo reboot
和...
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-45-generic x86_64)
rychu@RychuSRV:~$ uname -r
4.15.0-45-generic
我也试过
rychu@RychuSRV:~$ sudo do-release-upgrade
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS develoment release
set Prompt=normal in /etc/update-manager/release-upgrades.
请帮忙。