Proxmox won't boot anymore aftere upgrade

I "chroot-ed inside" from the rescue operating system and I run and apt-get dist-upgrade and this it's the output:

Code:
root@163-172-51-096:/# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 pve-kernel-4.15 : Depends: pve-kernel-4.15.18-18-pve but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@163-172-52-100:/# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libsnappy1v5
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  pve-kernel-4.15.18-18-pve
The following NEW packages will be installed:
  pve-kernel-4.15.18-18-pve
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
14 not fully installed or removed.
Need to get 0 B/52.5 MB of archives.
After this operation, 259 MB of additional disk space will be used.
Do you want to continue? [Y/n]
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
(Reading database ... 89378 files and directories currently installed.)
Preparing to unpack .../pve-kernel-4.15.18-18-pve_4.15.18-44_amd64.deb ...
Unpacking pve-kernel-4.15.18-18-pve (4.15.18-44) ...
Setting up pve-kernel-4.15.18-16-pve (4.15.18-41) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.18-16-pve /boot/vmlinuz-4.15.18-16-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.18-16-pve /boot/vmlinuz-4.15.18-16-pve
update-initramfs: Generating /boot/initrd.img-4.15.18-16-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.15.18-16-pve /boot/vmlinuz-4.15.18-16-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.15.18-16-pve /boot/vmlinuz-4.15.18-16-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
done
Setting up libexpat1:amd64 (2.2.0-2+deb9u2) ...
Setting up libpve-common-perl (5.0-53) ...
Setting up libpve-access-control (5.1-11) ...
Setting up pve-kernel-4.15.18-18-pve (4.15.18-44) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.18-18-pve /boot/vmlinuz-4.15.18-18-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.18-18-pve /boot/vmlinuz-4.15.18-18-pve
update-initramfs: Generating /boot/initrd.img-4.15.18-18-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.15.18-18-pve /boot/vmlinuz-4.15.18-18-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.15.18-18-pve /boot/vmlinuz-4.15.18-18-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
done
Setting up pve-kernel-4.15.18-15-pve (4.15.18-40) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.18-15-pve /boot/vmlinuz-4.15.18-15-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.18-15-pve /boot/vmlinuz-4.15.18-15-pve
update-initramfs: Generating /boot/initrd.img-4.15.18-15-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.15.18-15-pve /boot/vmlinuz-4.15.18-15-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.15.18-15-pve /boot/vmlinuz-4.15.18-15-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
done
Setting up libssl1.0.2:amd64 (1.0.2s-1~deb9u1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libssl1.1:amd64 (1.1.0k-1~deb9u1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up openssl (1.1.0k-1~deb9u1) ...
Processing triggers for pve-ha-manager (2.0-9) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up pve-kernel-4.15 (5.4-6) ...
Setting up pve-kernel-4.15.18-14-pve (4.15.18-39) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.18-14-pve /boot/vmlinuz-4.15.18-14-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.18-14-pve /boot/vmlinuz-4.15.18-14-pve
update-initramfs: Generating /boot/initrd.img-4.15.18-14-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.15.18-14-pve /boot/vmlinuz-4.15.18-14-pve
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.15.18-14-pve /boot/vmlinuz-4.15.18-14-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
done
Setting up libpve-storage-perl (5.0-44) ...
Setting up qemu-server (5.0-54) ...
Setting up pve-manager (5.4-11) ...
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Running in chroot, ignoring request.
Setting up proxmox-ve (5.4-2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for pve-ha-manager (2.0-9) ...
W: APT had planned for dpkg to do more than it reported back (38 vs 48).
   Affected packages: pve-kernel-4.15.18-14-pve:amd64 pve-kernel-4.15.18-15-pve:amd64 pve-kernel-4.15.18-16-pve:amd64

What's happened with this upgrade???
 
I run this trying to remove the old kernel:

Code:
root@163-172-51-096:/# apt-get remove pve-kernel-4.15.18-14-pve pve-kernel-4.15.18-15-pve pve-kernel-4.15.18-16-pve
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libsnappy1v5
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  pve-kernel-4.15.18-14-pve pve-kernel-4.15.18-15-pve pve-kernel-4.15.18-16-pve
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 778 MB disk space will be freed.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 95593 files and directories currently installed.)
Removing pve-kernel-4.15.18-14-pve (4.15.18-39) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.15.18-14-pve /boot/vmlinuz-4.15.18-14-pve
update-initramfs: Deleting /boot/initrd.img-4.15.18-14-pve
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.15.18-14-pve /boot/vmlinuz-4.15.18-14-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
done
Removing pve-kernel-4.15.18-15-pve (4.15.18-40) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.15.18-15-pve /boot/vmlinuz-4.15.18-15-pve
update-initramfs: Deleting /boot/initrd.img-4.15.18-15-pve
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.15.18-15-pve /boot/vmlinuz-4.15.18-15-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
done
Removing pve-kernel-4.15.18-16-pve (4.15.18-41) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.15.18-16-pve /boot/vmlinuz-4.15.18-16-pve
update-initramfs: Deleting /boot/initrd.img-4.15.18-16-pve
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.15.18-16-pve /boot/vmlinuz-4.15.18-16-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.18-18-pve
Found initrd image: /boot/initrd.img-4.15.18-18-pve
done
root@163-172-52-100:/# apt-get update
Hit:1 https://enterprise.proxmox.com/debian/pve stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Ign:3 http://mirrors.online.net/debian stretch InRelease
Hit:4 http://mirrors.online.net/debian stretch Release
Hit:5 http://download.proxmox.com/debian stretch InRelease
Reading package lists... Done

Code:
root@163-172-51-096:/# pveversion --verbose
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
proxmox-ve: 5.4-2 (running kernel: 4.15.0-22-generic)
pve-manager: 5.4-11 (running version: 5.4-11/6df3d8d0)
pve-kernel-4.15: 5.4-6
pve-kernel-4.15.18-18-pve: 4.15.18-44
pve-kernel-4.15.18-13-pve: 4.15.18-37
pve-kernel-4.15.18-12-pve: 4.15.18-36
pve-kernel-4.15.18-11-pve: 4.15.18-34
pve-kernel-4.15.18-10-pve: 4.15.18-32
pve-kernel-4.15.18-9-pve: 4.15.18-30
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-11
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-53
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: 2.0-13
libpve-storage-perl: 5.0-44
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-3
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
proxmox-widget-toolkit: 1.0-28
pve-cluster: 5.0-37
pve-container: 2.0-39
pve-docs: 5.4-2
pve-edk2-firmware: 1.20190312-1
pve-firewall: 3.0-22
pve-firmware: 2.0-6
pve-ha-manager: 2.0-9
pve-i18n: 1.1-4
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 3.12.0-1
qemu-server: 5.0-54
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3

Then I run again:
Code:
apt-get install pve-kernel-4.15.18-14-pve pve-kernel-4.15.18-15-pve pve-kernel-4.15.18-16-pve

but it still won't boot. I also checked /var/log/pveam.log and there's nothing after the "crash".
 
Last edited:
This is the /var/log/apt/history.log
Code:
Start-Date: 2019-07-15  10:57:21
Commandline: apt-get dist-upgrade
Install: pve-kernel-4.15.18-18-pve:amd64 (4.15.18-44, automatic)
Upgrade: libpve-access-control:amd64 (5.1-10, 5.1-11), libpve-storage-perl:amd64 (5.0-43, 5.0-44), openssl:amd64 (1.1.0j-1~deb9u1, 1.1.0k-1~deb9u1), libexpat1:amd64 (2.2.0-2+deb9u1, 2.2.0-2+deb9u2), pve-manager:amd64 (5.4-7, 5.4-11), libpve-common-perl:amd64 (5.0-52, 5.0-53), qemu-server:amd64 (5.0-53, 5.0-54), pve-kernel-4.15:amd64 (5.4-4, 5.4-6), libssl1.1:amd64 (1.1.0j-1~deb9u1, 1.1.0k-1~deb9u1), libssl1.0.2:amd64 (1.0.2r-1~deb9u1, 1.0.2s-1~deb9u1), proxmox-ve:amd64 (5.4-1, 5.4-2)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-07-15  10:57:24
 
I tried to run
Code:
apt-get --reinstall install pve-kernel-4.15.18-18-pve libpve-access-control libpve-storage-perl openssl libexpat1 pve-manager libpve-common-perl qemu-server pve-kernel-4.15 libssl1.1 libssl1.0.2 proxmox-ve

but nothing to do. It does not boot.
 
How can I revert back the previous Proxmox kernel?

Code:
root@163-172-51-096:/# dpkg --list|grep pve-kernel
ii  pve-firmware                         2.0-6                          all          Binary firmware code for the pve-kernel
ii  pve-kernel-4.15                      5.4-6                          all          Latest Proxmox VE Kernel Image
ii  pve-kernel-4.15.18-11-pve            4.15.18-34                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-12-pve            4.15.18-36                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-13-pve            4.15.18-37                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-14-pve            4.15.18-39                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-15-pve            4.15.18-40                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-16-pve            4.15.18-41                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-18-pve            4.15.18-44                     amd64        The Proxmox PVE Kernel Image
ii  pve-kernel-4.15.18-9-pve             4.15.18-30                     amd64        The Proxmox PVE Kernel Image
 
hi,



what do you see on screen while booting?
Thanks for your reply. I could not see just the screen (the server is on remote location). I had only access through a rescue operating system where I mounted all the disk partitions and then chroot-ed. Anyway, I had to do a fresh install since it was taking too much time to fix it.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!