C
C
ctocopok2014-08-05 16:40:52
opencart
ctocopok, 2014-08-05 16:40:52

Ubuntu 10.04 won't update, apache won't start and other bugs - what's the problem?

There is Ubuntu 10.04 TLS:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:        10.04
Codename:       lucid

It spins (or rather, spinning) several web servers. Sometimes I go into it, drive with a sting.
This is what happened today. when I try to update the package list with sudo apt-get update , I get:
[email protected]:~$ sudo apt-get update
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.

Search, incl. according to the Toaster did not give enlightenment.
Fumbled through the logs.
in kern.log :
Aug  5 06:57:54 ubuntu kernel: [4798423.544340] mysqladmin[2875]: segfault at b7700000 ip 0077ede9 sp bf96d980 error 4 in libc-2.11.1.so[70c000+15c000]
Aug  5 07:00:08 ubuntu kernel: [4798557.388315] mysqladmin[2993]: segfault at b7700000 ip 005b1de9 sp bf8e4470 error 4 in libc-2.11.1.so[53f000+15c000]
Aug  5 07:00:10 ubuntu kernel: [4798558.932305] mysqladmin[3139]: segfault at b7700000 ip 007b6de9 sp bfcebb30 error 4 in libc-2.11.1.so[744000+15c000]
Aug  5 07:00:11 ubuntu kernel: [4798560.416301] mysqladmin[3212]: segfault at b7700000 ip 006d1de9 sp bff361b0 error 4 in libc-2.11.1.so[65f000+15c000]
Aug  5 07:00:14 ubuntu kernel: [4798562.948320] mysqladmin[3327]: segfault at b7700000 ip 00441de9 sp bfbda7d0 error 4 in libc-2.11.1.so[3cf000+15c000]

To this day, there were no segfaults.
in /var/log/apt/history.log :
Start-Date: 2014-08-05  06:57:12
Upgrade: libc-bin (2.11.1-0ubuntu7.13, 2.11.1-0ubuntu7.14), nscd (2.11.1-0ubuntu7.13, 2.11.1-0ubuntu7.14), libc-dev-bin (2.11.1-0ubuntu7.13, 2.11.1-0ubuntu7.14), libc6-i686 (2.11.1-0ubuntu7.13, 2.11.1-0ubuntu7.14), libc6-dev (2.11.1-0ubuntu7.13, 2.11.1-0ubuntu7.14), libc6 (2.11.1-0ubuntu7.13, 2.11.1-0ubuntu7.14)
End-Date: 2014-08-05  06:57:52

Start-Date: 2014-08-05  17:03:43
End-Date: 2014-08-05  17:03:43

However, the webservers were working until I rebooted the server (thought "did you try turning it off and on" would help).
Trying to run Apache:
[email protected]:~$ sudo /etc/init.d/apache2 start
 * Starting web server apache2                                                                                                  apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.10 for ServerName
                                                                                                                         [ OK ]
[email protected]:~$ sudo /etc/init.d/apache2 status
Apache is NOT running.

in the error.log from apache the name says PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/imap.so' - /usr/lib/php5/20060613+lfs/imap.so : cannot open shared object file: No such file or directory in Unknown on line 0

There is an opinion that the morning automatic libc update broke everything for me. But how to roll back?
wget works :)
PS. aptitude doesn't work either.
do-release-upgrade fails with the same errors.
fsck checked the disk, no bad news.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
web-mechanic, 2016-05-20
@amfetamine

There, the results are loaded with an Ajax request prnt.sc/b6fxeh prnt.sc/b6fy21
And most likely you can even take the implementation directly from the site you specified

C
ctocopok, 2014-08-05
@ctocopok

my decision:

cd ~
mkdir temp-deb
cd temp-deb
wget http://security.ubuntu.com/ubuntu/pool/universe/e/eglibc/libc6_2.11.1-0ubuntu7.13_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/e/eglibc/libc6-dev_2.11.1-0ubuntu7.13_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/e/eglibc/libc6-i686_2.11.1-0ubuntu7.13_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/e/eglibc/libc-bin_2.11.1-0ubuntu7.13_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/e/eglibc/libc-dev-bin_2.11.1-0ubuntu7.13_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/e/eglibc/nscd_2.11.1-0ubuntu7.13_i386.deb

sudo dpkg -i libc-bin_2.11.1-0ubuntu7.13_i386.deb 
sudo dpkg -i libc6_2.11.1-0ubuntu7.13_i386.deb
sudo dpkg -i libc6-i686_2.11.1-0ubuntu7.13_i386.deb
sudo dpkg -i libc-dev-bin_2.11.1-0ubuntu7.13_i386.deb
sudo dpkg -i libc6-dev_2.11.1-0ubuntu7.13_i386.deb
sudo dpkg -i nscd_2.11.1-0ubuntu7.13_i386.deb

sudo shutdown -r now

I took the order of the packages from the unattended-upgrades log.
After the reboot, the web server started working.

S
Sergey Petrikov, 2014-08-05
@RicoX


Comment out /usr/lib/php5/20060613+lfs/imap.so in the Apache config
Then start Apache, downgrade using normal means not only rollback to the last snapshot/backup (did you really do it before the upgrade?).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question