Post4VPS Forum | Free VPS Provider
Debian 9 Kernal not upgrade - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion)
+--- Forum: VPS Support (https://post4vps.com/Forum-VPS-Support)
+--- Thread: Debian 9 Kernal not upgrade (/Thread-Debian-9-Kernal-not-upgrade)

Pages: 1 2


Debian 9 Kernal not upgrade - sagher - 09-16-2018

Hi experts. i have facing a problem every time i try to upgrade my Debian 9. the log is following.
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 61756 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.32.1-0.1_amd64.deb ...
Unpacking bsdutils (1:2.32.1-0.1) over (1:2.32-0.4) ...
Setting up bsdutils (1:2.32.1-0.1) ...
(Reading database ... 61756 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-6_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-6_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


please help me to fix this. i read many articles but no one fix it.


RE: Debian 9 Kernal not upgrade - Mashiro - 09-16-2018

Try to do this as root or through sudo:
Code:
dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27-6_amd64.deb


After that run:
Code:
apt-get -f install


And then try to update again:
Code:
apt-get clean all && apt-get update && apt-get upgrade -y



RE: Debian 9 Kernal not upgrade - Amresh - 09-17-2018

Maybe first you should stop any running service like plesk, vesta, or any other.....
Then remove(uninstall) them so no interference comes at the time of upgradation.....
Second, you should use sudo and the update your system or any package!
Maybe then you will get no error!


RE: Debian 9 Kernal not upgrade - humanpuff69 - 09-17-2018

try upgrading with sort of safe mode where no one using the kernel . or just check the log like journalctl -xe for example


RE: Debian 9 Kernal not upgrade - sagher - 09-18-2018

After applying this command :



Code:
Code:
dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27-6_amd64.deb



i got this reply on putty:

 Kernel must be upgraded                                               x

   x                                                                       x
   x This version of the GNU libc requires kernel version 3.2 or later.    x
   x Please upgrade your kernel before installing glibc.    

                                                   OK

after pressing OK

Extracting templates from packages: 100%

Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 61756 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-6_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-6_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Post2Host-LosAngeles:~# dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27-6_amd64.deb
(Reading database ... 61756 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-6_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-6_amd64.deb (--install):
 subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-6_amd64.deb

(09-17-2018, 04:22 AM)Amresh Wrote: Maybe first you should stop any running service like plesk, vesta, or any other.....
Then remove(uninstall) them so no interference comes at the time of upgradation.....
Second, you should use sudo and the update your system or any package!
Maybe then you will get no error!

None of those services will avail. i don't have any control panel. simple VPS-9


RE: Debian 9 Kernal not upgrade - Mashiro - 09-18-2018

Oh... OpenVZ and Debian 9 is not a great combination. Sorry to break it to you but libc6 provided in Debian 9 has massive issues with the obsolete kernel used in OpenVZ. Upgrade/update is pretty much impossible without breaking anything.


RE: Debian 9 Kernal not upgrade - sagher - 09-18-2018

(09-18-2018, 03:20 PM)Hidden Refuge Wrote: Oh... OpenVZ and Debian 9 is not a great combination. Sorry to break it to you but libc6 provided in Debian 9 has massive issues with the obsolete kernel used in OpenVZ. Upgrade/update is pretty much impossible without breaking anything.

any idea to roll back settings or any way to fix it? how can i manually update GNU libc required kernal version 3.2 or higher ?


RE: Debian 9 Kernal not upgrade - Tyler - 09-18-2018

@sagher to upgrade to kernel 3.2 or higher... you can't on OpenVZ. The host would have to do it, and that's assuming 3.2 is available for OpenVZ. To be more specific, the hosts kernel has to be upgraded. OpenVZ servers all share the host kernel.

Sadly the OpenVZ kernel is only up to version 3.10. And that's on RedHat 7 (CentOS 7) which 99% of OpenVZ hosts do not run.

https://src.openvz.org/projects/OVZ/repos/vzkernel/commits

This is one of the many reasons KVM VPS are so sought after.


RE: Debian 9 Kernal not upgrade - Mashiro - 09-18-2018

You can't really. Your best bet is to use Debian 8 simply. Debian 8 still has support so there is no reason to leave it behind.


RE: Debian 9 Kernal not upgrade - sagher - 09-19-2018

Ok. so is it any way to rollback settings which try automatically updating kernel when i setup command apt-get upgrade. ?