Can't update&upgrade anymore @ UM 18.04 v2 LTS

They're fine, so that rules out a bad Python path (which could had been inheriting the wrong versions of the libraries). The Python installation isn't the problem, but it's clear one of the system libraries is faulty.

ld-2.27.so is provided in the libc6 package. You could try reinstalling that:

sudo apt install --reinstall libc6

This might not fix it, as there could be a different library that triggers libc6 to segfault, which in turn is crashing all these programs.

Just to double check, what architecture are you using?

dpkg --print-architecture

It may be worth posting a partial output of /var/log/apt/history.log from the point updates were working for you (6 days ago?) to see what has changed on the system.

sudo apt install --reinstall libc6

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 9 not upgraded.
Need to get 5.375 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /ubuntu bionic/main amd64 libc6 amd64 2.27-3ubuntu1 [2.824 kB]
Get:2 Index of /ubuntu bionic/main i386 libc6 i386 2.27-3ubuntu1 [2.551 kB]
Fetched 5.375 kB in 3s (1.965 kB/s)
Preconfiguring packages ...
(Reading database ... 234866 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
Unpacking libc6:amd64 (2.27-3ubuntu1) over (2.27-3ubuntu1) ...
Preparing to unpack .../libc6_2.27-3ubuntu1_i386.deb ...
Unpacking libc6:i386 (2.27-3ubuntu1) over (2.27-3ubuntu1) ...
Setting up libc6:amd64 (2.27-3ubuntu1) ...
Setting up libc6:i386 (2.27-3ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

dpkg --print-architecture

Output:
amd64

I want only 64 bit, not the libc6:i386, can I remove "libc6:i386"?

:frowning:

update-manager

Output after I re-installed libc6:
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
Segmentation fault

Kern.log:

[ 1515.062522] show_signal_msg: 4 callbacks suppressed
[ 1515.062524] update-manager[7247]: segfault at b0 ip 00007fb78895cac8 sp 00007fb75e60e880 error 4 in ld-2.27.so[7fb788950000+27000]
[ 2371.695452] audit: type=1107 audit(1561377891.877:39): pid=1316 uid=106 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="Hello" mask="send" name="org.freedesktop.DBus" pid=5536 label="firejail-default" peer_label="unconfined"
[ 2371.695452] exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?'
[ 3542.825860] update-manager[9487]: segfault at b0 ip 00007f45dd404ac8 sp 00007f45b311e880 error 4 in ld-2.27.so[7f45dd3f8000+27000]

Added to my firejail-default AppArmor-profile

/usr/bin/dbus-daemon rix,

now I only have one error in Kern.log:

[ 4407.743288] update-manager[10636]: segfault at b0 ip 00007f1da3a74ac8 sp 00007f1d7979e880 error 4 in ld-2.27.so[7f1da3a68000+27000]

I'm thinking this could be a problem related to Firejail and/or AppArmor. I'm not familiar with them, but it only sounds logical these sandboxes may be preventing the application from reading memory, a file or opening a network connection.

libc6:i386 is just the 32-bit version of the library, which might have been installed if you've installed a 32-bit dependency (e.g. Wine). Both the libraries are separated into /lib/i386-linux-gnu/ld-2.27.so and /lib/x86_64-linux-gnu/ld-2.27.so, so there's no harm keeping both.


Did this start happening with a kernel update? If so, try booting into an older version of the kernel and see if the segfaults continue. Hold Shift while starting the computer and choose Advanced Options for Ubuntu when the GRUB2 menu appears.

Without knowing was installed from a last known good point, I'm running out of ideas. :confused:

I can remember that I did a kernel update days ago, and since then I've been coming back constantly
"Segmentation fault".

Before, it ran without a problem. The Update Manager worked, also with FireJail+AppArmor enabled.

All other programs running fine.

Can you temporarily disable FireJail and Apparmor to see if it connects?

I'll try it out. See you later.

I disabled FireJail+AppArmor, rebooted.

Same error...

Kern.log:
Jun 24 16:41:53 user kernel: [ 709.022664] show_signal_msg: 11 callbacks suppressed
Jun 24 16:41:53 user kernel: [ 709.022666] update-manager[7038]: segfault at b0 ip 00007f5e0c1dcac8 sp 00007f5de1ede880 error 4 in ld-2.27.so[7f5e0c1d0000+27000]

Maybee a bug in ld-2.27.so?

I don't know how to use gdb to make a callback trace to see why
Update-Manager will not start.

I found in the crash.log of the Update-Manager this lines:

7f3eabf28000-7f3eac328000 rw-s 00000000 00:05 4718606 /SYSV00000000 (deleted)

7f3ed0110000-7f3ed0121000 r--p 00000000 fd:01 11797002 /home/user/.config/dconf/user (deleted) [file is present]

7f3ed2350000-7f3ed2351000 r--s 00000000 00:37 41 /run/user/1000/dconf/user (deleted) [file is present]

Cpus_allowed_list: 0-7 ( I have 8core cpu in my system)

Traceback:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 387, in install_all_updates
self.select_all_upgrades(None)
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 664, in select_all_upgrades
self._toggle_group_headers(True)
File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 652, in _toggle_group_headers
for row in model:
TypeError: 'NoneType' object is not iterable
UserGroups: adm audio cdrom dip disk plugdev pulse pulse-access sudo vboxusers video voice
_LogindSession: c3

I have open a new thread here to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1834055

I hope they can help me with my problem of Update-Manager.

I fixed this error:

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

Edited in "/etc/update-manager"
the file: "meta-release"

Changed: (https to http)
URI = http://changelogs.ubuntu.com/meta-release
URI_LTS = http://changelogs.ubuntu.com/meta-release-lts

Why I can't use https to update packages in Ubuntu Mate?

curl https://changelogs.ubuntu.com/meta-release
is working...

The error "Segmentation fault" is still there.

1 Like

The Launchpad bug report risks being marked as incomplete - since we wouldn't know the steps to reproduce the segmentation fault, nor does anybody appear to experiencing the same issue. :thinking:


Try performing a memory test. Defective RAM can be a cause for segmentation faults.

When starting the computer, hold SHIFT before the GRUB bootloader loads. Choose "Memory Test (memtest86+)". The test may take some time to complete.


Did you try booting a previous kernel? I can't tell from this response if you did:

I suggested a couple of times to post us your Apt history from the point things were working, to give us an idea of what has changed.

Of interest: Last year, someone had a similar to situation, but this was on Debian and doesn't appear to be resolved:

I have installed new memory 4x8 GB Corsair RAM in my PC.

Everything runs without problems except:

update manager
software-properties-gtk

I have tested with VirtualBox whether the update manager works there. Yes, he does. (Ubuntu-Mate 19. 10 Live CD)

I'm gonna run a RAM test later.

I already read this article a few days ago.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893320

Thanks anyway for the info.

I tested my new RAM. No errors.

Good to hear, that rules out hardware being the issue.

  • Did you try booting a previous kernel? Does it work when using an older kernel?
  • Mind sharing your /var/log/apt/history.log? (We only need to know what changed from 7 days ago)

Yes, I booted with another kernel and the error is still there.

I often delete my logs with Bleachbit, so I don't have any history. log (apt) now.

A few minutes ago, I did a test:
Recommended to me by:

sudo add-apt-repository ppa:libreoffice/ppa

[sudo] password for user:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 326, in get_ppa_info
ret = get_ppa_info_from_lp(user, ppa)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in get_ppa_info_from_lp
return get_info_from_lp(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 95, in get_info_from_lp
return get_info_from_https(lp_url, True)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_https
data = _get_https_content_py3(url, accept_json)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in _get_https_content_py3
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.6/urllib/request.py", line 210, in urlopen
raise ValueError('SSL support not available')
ValueError: SSL support not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 136, in
shortcut = shortcut_handler(line)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 868, in shortcut_handler
ret = factory(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 398, in shortcut_handler
return PPAShortcutHandler(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 355, in init
info = get_ppa_info(self.shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 338, in get_ppa_info
_get_suggested_ppa_message(user, ppa))
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 295, in _get_suggested_ppa_message
lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 95, in get_info_from_lp
return get_info_from_https(lp_url, True)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_https
data = _get_https_content_py3(url, accept_json)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in _get_https_content_py3
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.6/urllib/request.py", line 210, in urlopen
raise ValueError('SSL support not available')
ValueError: SSL support not available

Installed OpenSSL packages:

libevent-openssl-2.1-6 (2.1.8-stable-4build1)
libgnutls-openssl27 (3.5.18-1ubuntu1.1)
openssl (1.1.1-1ubuntu2.1~18.04.3)
perl-openssl-defaults (3build1)
python-openssl (17.5.0-1ubuntu1)
python3-openssl (17.5.0-1ubuntu1)
libssl-dev (1.1.1-1ubuntu2.1~18.04.3)
libssl-doc (1.1.1-1ubuntu2.1~18.04.3)
libssl1.0.0 (1.0.2n-1ubuntu5.3)
libssl1.1 (1.1.1-1ubuntu2.1~18.04.3)

Do I need package?

openssl1.0 (1.0.2n-1ubuntu5.3)

Which OpenSSL packages are un-needed? See above @ Installed OpenSSL packages...

openssl version

OpenSSL 1.1.1b 26 Feb 2019

which openssl

/usr/local/bin/openssl

openssl speed (is working)

openssl speed
Doing mdc2 for 3s on 16 size blocks: 2371743 mdc2's in 2.99s
Doing mdc2 for 3s on 64 size blocks: 654173 mdc2's in 3.00s
Doing mdc2 for 3s on 256 size blocks: 167583 mdc2's in 3.00s
...

I don't know what is wrong with my OpenSSL.
I can't start the update manager, must have something to do with OpenSSL. Just what?

This might explain it. Did you compile/install a build of OpenSSL or other software recently?

The contents of /usr/local will take priority over /usr, etc, which would explain why reinstalling packages did not make a difference.

As root, delete traces of openssl in these locations:

  • /usr/local/bin
  • /usr/local/lib

Use this command to help locate the files:

find /usr/local -name "*openssl*"

I have the binary of 'openssl' in folder:

/bin
/usr/bin

Output:

find /usr/local -name "openssl"

/usr/local/share/doc/openssl
/usr/local/share/doc/openssl/html/man1/openssl-rsautl.html
/usr/local/share/doc/openssl/html/man1/openssl-enc.html
/usr/local/share/doc/openssl/html/man1/openssl-ca.html
/usr/local/share/doc/openssl/html/man1/openssl-gendsa.html
/usr/local/share/doc/openssl/html/man1/openssl-pkey.html
/usr/local/share/doc/openssl/html/man1/openssl-speed.html
/usr/local/share/doc/openssl/html/man1/openssl-crl.html
/usr/local/share/doc/openssl/html/man1/openssl-errstr.html
/usr/local/share/doc/openssl/html/man1/openssl-storeutl.html
/usr/local/share/doc/openssl/html/man1/openssl-pkcs12.html
/usr/local/share/doc/openssl/html/man1/openssl-c_rehash.html
/usr/local/share/doc/openssl/html/man1/openssl-pkeyparam.html
/usr/local/share/doc/openssl/html/man1/openssl-s_client.html
/usr/local/share/doc/openssl/html/man1/openssl-ciphers.html
/usr/local/share/doc/openssl/html/man1/openssl.html
/usr/local/share/doc/openssl/html/man1/openssl-rand.html
/usr/local/share/doc/openssl/html/man1/openssl-pkeyutl.html
/usr/local/share/doc/openssl/html/man1/openssl-dsaparam.html
/usr/local/share/doc/openssl/html/man1/openssl-srp.html
/usr/local/share/doc/openssl/html/man1/openssl-genrsa.html
/usr/local/share/doc/openssl/html/man1/openssl-sess_id.html
/usr/local/share/doc/openssl/html/man1/openssl-dsa.html
/usr/local/share/doc/openssl/html/man1/openssl-dhparam.html
/usr/local/share/doc/openssl/html/man1/openssl-dgst.html
/usr/local/share/doc/openssl/html/man1/openssl-prime.html
/usr/local/share/doc/openssl/html/man1/openssl-s_server.html
/usr/local/share/doc/openssl/html/man1/openssl-cms.html
/usr/local/share/doc/openssl/html/man1/openssl-pkcs8.html
/usr/local/share/doc/openssl/html/man1/openssl-nseq.html
/usr/local/share/doc/openssl/html/man1/openssl-ts.html
/usr/local/share/doc/openssl/html/man1/openssl-rsa.html
/usr/local/share/doc/openssl/html/man1/openssl-req.html
/usr/local/share/doc/openssl/html/man1/openssl-pkcs7.html
/usr/local/share/doc/openssl/html/man1/openssl-verify.html
/usr/local/share/doc/openssl/html/man1/openssl-tsget.html
/usr/local/share/doc/openssl/html/man1/openssl-ocsp.html
/usr/local/share/doc/openssl/html/man1/openssl-crl2pkcs7.html
/usr/local/share/doc/openssl/html/man1/openssl-s_time.html
/usr/local/share/doc/openssl/html/man1/openssl-spkac.html
/usr/local/share/doc/openssl/html/man1/openssl-version.html
/usr/local/share/doc/openssl/html/man1/openssl-ecparam.html
/usr/local/share/doc/openssl/html/man1/openssl-list.html
/usr/local/share/doc/openssl/html/man1/openssl-genpkey.html
/usr/local/share/doc/openssl/html/man1/openssl-x509.html
/usr/local/share/doc/openssl/html/man1/openssl-engine.html
/usr/local/share/doc/openssl/html/man1/openssl-asn1parse.html
/usr/local/share/doc/openssl/html/man1/openssl-smime.html
/usr/local/share/doc/openssl/html/man1/openssl-passwd.html
/usr/local/share/doc/openssl/html/man1/openssl-ec.html
/usr/local/share/doc/openssl/html/man1/openssl-rehash.html
/usr/local/share/man/man1/openssl-prime.1
/usr/local/share/man/man1/openssl-enc.1
/usr/local/share/man/man1/openssl-verify.1
/usr/local/share/man/man1/openssl-tsget.1
/usr/local/share/man/man1/openssl-ts.1
/usr/local/share/man/man1/openssl-pkcs8.1ssl
/usr/local/share/man/man1/openssl-s_time.1ssl
/usr/local/share/man/man1/openssl-genpkey.1
/usr/local/share/man/man1/openssl-list.1ssl
/usr/local/share/man/man1/openssl-rsa.1ssl
/usr/local/share/man/man1/openssl-crl.1ssl
/usr/local/share/man/man1/openssl-pkeyutl.1
/usr/local/share/man/man1/openssl-dhparam.1ssl
/usr/local/share/man/man1/openssl-ciphers.1
/usr/local/share/man/man1/openssl-c_rehash.1
/usr/local/share/man/man1/openssl-cms.1ssl
/usr/local/share/man/man1/openssl-enc.1ssl
/usr/local/share/man/man1/openssl-ts.1ssl
/usr/local/share/man/man1/openssl-x509.1ssl
/usr/local/share/man/man1/openssl-pkcs12.1
/usr/local/share/man/man1/openssl-spkac.1
/usr/local/share/man/man1/openssl-genrsa.1
/usr/local/share/man/man1/openssl.1
/usr/local/share/man/man1/openssl.1ssl
/usr/local/share/man/man1/openssl-sess_id.1
/usr/local/share/man/man1/openssl-rand.1ssl
/usr/local/share/man/man1/openssl-crl2pkcs7.1
/usr/local/share/man/man1/openssl-errstr.1ssl
/usr/local/share/man/man1/openssl-passwd.1ssl
/usr/local/share/man/man1/openssl-pkcs12.1ssl
/usr/local/share/man/man1/openssl-verify.1ssl
/usr/local/share/man/man1/openssl-pkcs7.1
/usr/local/share/man/man1/openssl-nseq.1
/usr/local/share/man/man1/openssl-storeutl.1
/usr/local/share/man/man1/openssl-tsget.1ssl
/usr/local/share/man/man1/openssl-ca.1ssl
/usr/local/share/man/man1/openssl-gendsa.1
/usr/local/share/man/man1/openssl-smime.1
/usr/local/share/man/man1/openssl-nseq.1ssl
/usr/local/share/man/man1/openssl-gendsa.1ssl
/usr/local/share/man/man1/openssl-req.1ssl
/usr/local/share/man/man1/openssl-rsa.1
/usr/local/share/man/man1/openssl-ec.1ssl
/usr/local/share/man/man1/openssl-genpkey.1ssl
/usr/local/share/man/man1/openssl-ca.1
/usr/local/share/man/man1/openssl-dsa.1
/usr/local/share/man/man1/openssl-cms.1
/usr/local/share/man/man1/openssl-pkey.1
/usr/local/share/man/man1/openssl-asn1parse.1ssl
/usr/local/share/man/man1/openssl-speed.1
/usr/local/share/man/man1/openssl-rsautl.1
/usr/local/share/man/man1/openssl-dgst.1ssl
/usr/local/share/man/man1/openssl-dsaparam.1
/usr/local/share/man/man1/openssl-srp.1
/usr/local/share/man/man1/openssl-c_rehash.1ssl
/usr/local/share/man/man1/openssl-engine.1ssl
/usr/local/share/man/man1/openssl-passwd.1
/usr/local/share/man/man1/openssl-req.1
/usr/local/share/man/man1/openssl-ocsp.1
/usr/local/share/man/man1/openssl-asn1parse.1
/usr/local/share/man/man1/openssl-s_server.1ssl
/usr/local/share/man/man1/openssl-dsaparam.1ssl
/usr/local/share/man/man1/openssl-speed.1ssl
/usr/local/share/man/man1/openssl-pkeyparam.1
/usr/local/share/man/man1/openssl-s_server.1
/usr/local/share/man/man1/openssl-spkac.1ssl
/usr/local/share/man/man1/openssl-version.1ssl
/usr/local/share/man/man1/openssl-dhparam.1
/usr/local/share/man/man1/openssl-sess_id.1ssl
/usr/local/share/man/man1/openssl-rand.1
/usr/local/share/man/man1/openssl-pkcs8.1
/usr/local/share/man/man1/openssl-rehash.1
/usr/local/share/man/man1/openssl-engine.1
/usr/local/share/man/man1/openssl-s_client.1ssl
/usr/local/share/man/man1/openssl-s_client.1
/usr/local/share/man/man1/openssl-ec.1
/usr/local/share/man/man1/openssl-rehash.1ssl
/usr/local/share/man/man1/openssl-s_time.1
/usr/local/share/man/man1/openssl-rsautl.1ssl
/usr/local/share/man/man1/openssl-genrsa.1ssl
/usr/local/share/man/man1/openssl-pkeyutl.1ssl
/usr/local/share/man/man1/openssl-crl2pkcs7.1ssl
/usr/local/share/man/man1/openssl-crl.1
/usr/local/share/man/man1/openssl-list.1
/usr/local/share/man/man1/openssl-ecparam.1
/usr/local/share/man/man1/openssl-ecparam.1ssl
/usr/local/share/man/man1/openssl-pkcs7.1ssl
/usr/local/share/man/man1/openssl-errstr.1
/usr/local/share/man/man1/openssl-pkey.1ssl
/usr/local/share/man/man1/openssl-ciphers.1ssl
/usr/local/share/man/man1/openssl-smime.1ssl
/usr/local/share/man/man1/openssl-dsa.1ssl
/usr/local/share/man/man1/openssl-version.1
/usr/local/share/man/man1/openssl-x509.1
/usr/local/share/man/man1/openssl-ocsp.1ssl
/usr/local/share/man/man1/openssl-pkeyparam.1ssl
/usr/local/share/man/man1/openssl-dgst.1
/usr/local/include/openssl
/usr/local/include/openssl/opensslv.h
/usr/local/include/openssl/opensslconf.h
/usr/local/lib/pkgconfig/openssl.pc
/usr/local/bin/openssl

Which traces must I delete all?

I deleted exec file "/usr/local/bin/openssl"

It'd be good if you'd tell me what things to erase :slight_smile:

Which files to delete in "/usr/local/lib"?

Thanks for trying to help me @ lah7

The find command can delete them for you.

find /usr/local -name "*openssl*" -delete

:warning: Normally this would be dangerous - but we just checked the files in the post above. :point_up:

Once deleted, the system will revert back to using the packaged version of OpenSSL. This output should change to:

~$ which openssl
/usr/bin/openssl
1 Like