arrow_upward

Pages (2):
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debian 9 Kernal not upgrade
#1
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.
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#2
Try to do this as root or through sudo:
dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27-6_amd64.deb


After that run:
apt-get -f install


And then try to update again:
apt-get clean all && apt-get update && apt-get upgrade -y
[Image: zHHqO5Q.png]
#3
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!
Terminal
Thankyou Post4VPS, @Pacific Spirit (Hostlease) for a Free VPS!
+
Thankyou to @Neoon for a Free NanoKVM VPS
#4
try upgrading with sort of safe mode where no one using the kernel . or just check the log like journalctl -xe for example
Terminal
humanpuff69@FPAX:~$ Thanks To Shadow Hosting And Post4VPS for VPS 5
#5
After applying this command :



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
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#6
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.
[Image: zHHqO5Q.png]
#7
(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 ?
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#8
@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/repo...el/commits

This is one of the many reasons KVM VPS are so sought after.
#9
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.
[Image: zHHqO5Q.png]
#10
Ok. so is it any way to rollback settings which try automatically updating kernel when i setup command apt-get upgrade. ?
Heart LOVE FOR ALL  HATRED FOR NONE Heart
Pages (2):



person_pin_circle Users browsing this thread: 4 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting