Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Updating packages in Wheezy broke mysql and apache and php

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Updating packages in Wheezy broke mysql and apache and p

#21 Post by kedaha »

For example, your sources list, which you can modify for your own mirror, should look like this (don't include any extraneous sources):

Code: Select all

deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
# deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main
deb http://security.debian.org/ wheezy/updates main
But after editing it, don't go running any apt or aptitude commands yet or you might put the kibosh on any chances there are of stabilizing the system.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

wheakory
Posts: 10
Joined: 2017-08-14 20:36

Re: Updating packages in Wheezy broke mysql and apache and p

#22 Post by wheakory »

I've added the repos you mentioned what would be the next step in the process.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Updating packages in Wheezy broke mysql and apache and p

#23 Post by kedaha »

wheakory wrote:I've added the repos you mentioned what would be the next step in the process.
I'm not in the habit of repairing broken systems so it's a question of playing it by ear. By the way, does the server still have internet connectivity?
Is the dpkg tool still functional? If so, the next step is to deal with all the broken, i.e, half-configured packages.
I think you should reinstall the packages from /var/cache/apt/archives/
The problem is that if the broken packages are all removed by using another method, a lot of vital dependences could get ripped out rendering the system as dead as a doornail. But both aptitude or apt cannot be used at this stage. Take a look there, and if you post the output, please wrap it in code blocks so it looks like this:

Code: Select all

$ cd /var/cache/apt/archives && ls
Assuming you haven't previously cleaned out that directory, then I think you should later be able to use the following command to reinstall the deleted packages from that directory thus overwriting the broken packages.

Code: Select all

# dpkg -i --force-overwrite /var/cache/apt/archives/
But you'll have to append exactly the same packages you removed to this command.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

wheakory
Posts: 10
Joined: 2017-08-14 20:36

Re: Updating packages in Wheezy broke mysql and apache and p

#24 Post by wheakory »

I very much appreciate the expert advice I will try
The sequence of steps and let you know tomorrow.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Updating packages in Wheezy broke mysql and apache and p

#25 Post by kedaha »

wheakory wrote:I very much appreciate the expert advice I will try
The sequence of steps and let you know tomorrow.
Thanks, there are also other steps to be taken. The first objective is to try and get the system back to the state you started from and proceed from there.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5347
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: Updating packages in Wheezy broke mysql and apache and p

#26 Post by dilberts_left_nut »

Code: Select all

libc-dev-bin : Depends: libc6 (< 2.18) but 2.24-11+deb9u1 is installed
libc6-dev : Depends: libc6 (= 2.17-92) but 2.24-11+deb9u1 is installed
I suspect this is going to give you trouble.
AdrianTM wrote:There's no hacker in my grandma...

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Updating packages in Wheezy broke mysql and apache and p

#27 Post by kedaha »

dilberts_left_nut wrote:

Code: Select all

libc-dev-bin : Depends: libc6 (< 2.18) but 2.24-11+deb9u1 is installed
libc6-dev : Depends: libc6 (= 2.17-92) but 2.24-11+deb9u1 is installed
I suspect this is going to give you trouble.
:wink:
I'm sure it'll give him trouble; in fact so much so that it may make restoring the system nigh on impossible. Querying the Debian archive currently shows:

Code: Select all

$ rmadison --architecture amd64 libc6
libc6      | 2.13-38+deb7u10 | oldoldstable | amd64
libc6      | 2.19-18+deb8u10 | oldstable    | amd64
libc6      | 2.24-11+deb9u1  | stable       | amd64
libc6      | 2.24-12         | testing      | amd64
libc6      | 2.24-14         | unstable     | amd64
wheakory wrote:Here's output from commands
root@sftpinterface:~ # uname -r
3.2.0-1-amd64[/quote
Conclusion: It has an old kernel from wheezy and a core library from current stable. It's necessary to determine further the composition of that monstrous Frankendebian system and modify/etc/apt/sources.list accordingly. It's a wonder the system is still hobbling along at all. :?
@whickory
Post result of:

Code: Select all

$ cat /proc/1/comm
please.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

wheakory
Posts: 10
Joined: 2017-08-14 20:36

Re: Updating packages in Wheezy broke mysql and apache and p

#28 Post by wheakory »

Here's result of command
[root@sftpface2 ~]# cat /proc/1/comm
init
[root@sftpface2 ~]#

wheakory
Posts: 10
Joined: 2017-08-14 20:36

Re: Updating packages in Wheezy broke mysql and apache and p

#29 Post by wheakory »

Heres archives directory content

root@sftpinterface:~ # cd /var/cache/apt/archives && ls
bash_4.2+dfsg-0.1+deb7u3_amd64.deb
binutils_2.28-5_amd64.deb
debian-archive-keyring_2017.5_all.deb
debian-keyring_2017.05.28_all.deb
dmeventd_2%3a1.02.137-2_amd64.deb
dmsetup_2%3a1.02.137-2_amd64.deb
dpkg_1.18.24_amd64.deb
ferm_2.1-5_all.deb
ftp_0.17-27_amd64.deb
init-system-helpers_1.48_all.deb
inotify-tools_3.14-1_amd64.deb
ipset_6.12.1-1_amd64.deb
libapr1_1.5.2-5_amd64.deb
libaprutil1_1.5.4-3_amd64.deb
libaprutil1-dbd-sqlite3_1.5.4-3_amd64.deb
libaprutil1-ldap_1.5.4-3_amd64.deb
libblkid1_2.29.2-1_amd64.deb
libbsd0_0.8.3-1_amd64.deb
libc6_2.24-11+deb9u1_amd64.deb
libc6-dev_2.24-11+deb9u1_amd64.deb
libc-bin_2.24-11+deb9u1_amd64.deb
libc-dev-bin_2.24-11+deb9u1_amd64.deb
libc-l10n_2.24-11+deb9u1_all.deb
libcups2_2.2.1-8_amd64.deb
libdb5.3_5.3.28-12+b1_amd64.deb
libdevmapper1.02.1_2%3a1.02.137-2_amd64.deb
libdevmapper-event1.02.1_2%3a1.02.137-2_amd64.deb
libexpat1_2.2.0-2+deb9u1_amd64.deb
libfdisk1_2.29.2-1_amd64.deb
libgcrypt20_1.7.6-2+deb9u1_amd64.deb
libgmp10_2%3a6.1.2+dfsg-1_amd64.deb
libgnutls30_3.5.8-5+deb9u2_amd64.deb
libgpg-error0_1.26-2_amd64.deb
libgssapi-krb5-2_1.15-1_amd64.deb
libhogweed4_3.3-1+b1_amd64.deb
libinotifytools0_3.14-1_amd64.deb
libipset2_6.12.1-1_amd64.deb
libk5crypto3_1.15-1_amd64.deb
libkeyutils1_1.5.9-9_amd64.deb
libkrb5-3_1.15-1_amd64.deb
libkrb5support0_1.15-1_amd64.deb
libldb1_2%3a1.1.27-1+b1_amd64.deb
liblocale-gettext-perl_1.07-3+b1_amd64.deb
liblua5.2-0_5.2.4-1.1+b2_amd64.deb
liblvm2app2.2_2.02.168-2_amd64.deb
liblvm2cmd2.02_2.02.168-2_amd64.deb
liblz4-1_0.0~r131-2+b1_amd64.deb
liblzma5_5.2.2-1.2+b1_amd64.deb
libmemcached11_1.0.18-4.1_amd64.deb
libmemcachedutil2_1.0.18-4.1_amd64.deb
libmnl0_1.0.3-3_amd64.deb
libmount1_2.29.2-1_amd64.deb
libmpdec2_2.4.2-1_amd64.deb
libncurses5_6.0+20161126-1_amd64.deb
libncursesw5_6.0+20161126-1_amd64.deb
libnettle6_3.3-1+b1_amd64.deb
libnghttp2-14_1.18.1-1_amd64.deb
libp11-kit0_0.23.3-2_amd64.deb
libpam-winbind_2%3a4.5.8+dfsg-2+deb9u1+b1_amd64.deb
libpython2.7_2.7.13-2_amd64.deb
libpython2.7-minimal_2.7.13-2_amd64.deb
libpython2.7-stdlib_2.7.13-2_amd64.deb
libpython3.5_3.5.3-1_amd64.deb
libpython3.5-minimal_3.5.3-1_amd64.deb
libpython3.5-stdlib_3.5.3-1_amd64.deb
libpython-stdlib_2.7.13-2_amd64.deb
libreadline7_7.0-3_amd64.deb
libruby2.3_2.3.3-1_amd64.deb
libselinux1_2.6-3+b1_amd64.deb
libsmartcols1_2.29.2-1_amd64.deb
libssl1.0.2_1.0.2l-2_amd64.deb
libssl1.1_1.1.0f-3_amd64.deb
libsystemd0_232-25+deb9u1_amd64.deb
libtalloc2_2.1.8-1_amd64.deb
libtasn1-6_4.10-1.1_amd64.deb
libtcl8.6_8.6.6+dfsg-1+b1_amd64.deb
libtdb1_1.3.11-2_amd64.deb
libtevent0_0.9.31-1_amd64.deb
libtext-charwidth-perl_0.04-7+b5_amd64.deb
libtext-iconv-perl_1.7-5+b4_amd64.deb
libtinfo5_6.0+20161126-1_amd64.deb
libtirpc1_0.2.5-1.2_amd64.deb
libudev1_232-25+deb9u1_amd64.deb
libuuid-perl_0.27-1_amd64.deb
libwbclient0_2%3a4.5.8+dfsg-2+deb9u1+b1_amd64.deb
linux-headers-3.2.0-4-all_3.2.54-2_amd64.deb
linux-headers-3.2.0-4-all-amd64_3.2.54-2_amd64.deb
linux-headers-3.2.0-4-amd64_3.2.54-2_amd64.deb
linux-headers-3.2.0-4-common_3.2.54-2_amd64.deb
linux-headers-3.2.0-4-common-rt_3.2.54-2_amd64.deb
linux-headers-3.2.0-4-rt-amd64_3.2.54-2_amd64.deb
linux-headers-amd64_3.2+46_amd64.deb
linux-libc-dev_4.9.30-2+deb9u3_amd64.deb
linux-source-3.2_3.2.54-2_all.deb
locales_2.24-11+deb9u1_all.deb
lock
lsb-base_9.20161125_all.deb
lsof_4.89+dfsg-0.1_amd64.deb
lvm2_2.02.168-2_amd64.deb
nfs-common_1%3a1.3.4-2.1_amd64.deb
p7zip-full_9.20.1~dfsg.1-4_amd64.deb
partial
perl-base_5.24.1-3+deb9u1_amd64.deb
proftpd-basic_1.3.5b-4_amd64.deb
proftpd-mod-vroot_0.9.4-1_amd64.deb
pv_1.6.0-1+b1_amd64.deb
python_2.7.13-2_amd64.deb
python2.7_2.7.13-2_amd64.deb
python2.7-minimal_2.7.13-2_amd64.deb
python-crypto_2.6.1-7_amd64.deb
python-dnspython_1.15.0-1_all.deb
python-ldb_2%3a1.1.27-1+b1_amd64.deb
python-minimal_2.7.13-2_amd64.deb
python-samba_2%3a4.5.8+dfsg-2+deb9u1+b1_amd64.deb
python-talloc_2.1.8-1_amd64.deb
python-tdb_1.3.11-2_amd64.deb
rake_10.5.0-2_all.deb
ruby-did-you-mean_1.0.0-2_all.deb
ruby-minitest_5.9.0-1_all.deb
ruby-net-telnet_0.1.1-2_all.deb
ruby-power-assert_0.3.0-1_all.deb
ruby-test-unit_3.1.7-2_all.deb
samba-common_2%3a4.5.8+dfsg-2+deb9u1_all.deb
samba-common-bin_2%3a4.5.8+dfsg-2+deb9u1+b1_amd64.deb
samba-libs_2%3a4.5.8+dfsg-2+deb9u1+b1_amd64.deb
screen_4.5.0-6_amd64.deb
sgml-base_1.29_all.deb
sysvinit-utils_2.88dsf-59.9_amd64.deb
tar_1.29b-1.1_amd64.deb
tasksel_3.39_all.deb
util-linux_2.29.2-1_amd64.deb
vim_2%3a8.0.0197-4_amd64.deb
vim-common_2%3a8.0.0197-4_all.deb
vim-runtime_2%3a8.0.0197-4_all.deb
vim-tiny_2%3a8.0.0197-4_amd64.deb
winbind_2%3a4.5.8+dfsg-2+deb9u1+b1_amd64.deb
xxd_2%3a8.0.0197-4_amd64.deb

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Updating packages in Wheezy broke mysql and apache and p

#30 Post by kedaha »

OK.
Please, specially when posting lengthy chunks of terminal output, use code blocks when editing your post by selecting the text to be included by right-clicking so that it's highlighted and then click the Code tab above so that this:

$ cat /etc/issue && cat /etc/debian_version

looks like this:

Code: Select all

$ cat /etc/issue && cat /etc/debian_version
This makes it easier for others to scroll through it and it doesn't intrude so much on the main post.
(Please post the output of the command by the way).
You might like to edit your previous posts to wrap the spammy-looking terminal output in code blocks too. :wink:
Some tools are needed for the job:
Please also show the results of the following:

Code: Select all

$ apt-cache policy apt-show-versions deborphan
If it isn't, then post result of:

Code: Select all

$ aptitude install -s apt-show-versions deborphan
deborphan will be uninstallable because libc6 is a dependency and now you have the wrong version but maybe the other can be installed.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

Post Reply