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

An error saying segmentation fault (or segfault , or SIGSEGV ) in Ubuntu and other Unix-like operating systems, or saying general protection fault in Windows, is when a program attempts to access a part of memory that cannot be accessed, or which the program is prohibited from accessing.

you need to remove /var/lib/ubuntu-release-upgrader/release-upgrade-available

and then run /usr/lib/ubuntu-release-upgrader/release-upgrade-motd

@ lah7
python3 -c "import sys; print('\n'.join(sys.path))"

Output:
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/usr/local/lib/python3.6/dist-packages
/usr/lib/python3/dist-packages

I re-installed the packages.

Output of Terminal:

update-manager

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

(My internet is working)

@ LordBoltar, I use FireJail + AppArmor in Ubuntu Mate.

The folder /var/lib/ubuntu-release-upgrader is empty.

on root, I done:

# DEBUG_UPDATE_MANAGER=1 update-manager -c

(update-manager:5961): Gtk-WARNING **: 09:29:16.947: Theme parsing error: mate-applications.css:13:4: Expected semicolon
MetaRelease.__init__() useDevel=False useProposed=False
/etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release 
/etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release-lts 
/etc/update-manager/meta-release: -development 
/etc/update-manager/meta-release: -proposed 
metarelease-uri: https://changelogs.ubuntu.com/meta-release-lts
MetaRelease.download()
result of meta-release download: '<urlopen error unknown url type: https>'
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
NO self.metarelease_information
Segmentation fault

# curl https://changelogs.ubuntu.com/meta-release-lts

Output:

...
Dist: bionic
Name: Bionic Beaver
Version: 18.04.2 LTS
Date: Thu, 26 April 2018 18:04:00 UTC
Supported: 1
Description: This is the 18.04.2 LTS release
Release-File: http://archive.ubuntu.com/ubuntu/dists/bionic/Release
ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dist-upgrader-all/current/ReleaseAnnouncement
ReleaseNotesHtml: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dist-upgrader-all/current/ReleaseAnnouncement.html
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dist-upgrader-all/current/bionic.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dist-upgrader-all/current/bionic.tar.gz.gpg

The forum here means: (Segmentation fault)

Very basically, it means your program is trying to access a memory area it is not suposed to.
2. To the current directoy.
3. You need to make sure your program doesn't do 1..

https://ubuntuforums.org/showthread.php?t=2071988

I tested in Terminal:

update-manager --help (is working)
update-manager --version (is working) [v1:18.04.11.10]
update-manager --check-dist-upgrades (error)
update-manager --no-focus-on-map (error)
update-manager --no-update (error)
update-manager --debug = (error)

(error) = Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
Segmentation fault

I stopped FireJail+AppArmor, nothing happend, the errors still there.

Kern.log shows:

update-manager[8736]: segfault at b0 ip 00007fa2da8ccac8 sp 00007fa2b060e880 error 4 in ld-2.27.so[7fa2da8c0000+27000]
update-manager[9191]: segfault at b0 ip 00007f7bc46c4ac8 sp 00007f7b9a406880 error 4 in ld-2.27.so[7f7bc46b8000+27000]
update-manager[9217]: segfault at b0 ip 00007f8fa5194ac8 sp 00007f8f7aefe880 error 4 in ld-2.27.so[7f8fa5188000+27000]
update-manager[9263]: segfault at b0 ip 00007f956de0cac8 sp 00007f9543b76880 error 4 in ld-2.27.so[7f956de00000+27000]
update-manager[9289]: segfault at b0 ip 00007f9c118ccac8 sp 00007f9be764e880 error 4 in ld-2.27.so[7f9c118c0000+27000]
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
IPv4: martian source 192.168.178.255 from 192.168.178.20, on dev eth1
ll header: 00000000: ff ff ff ff ff ff 70 4d 7b 89 39 31 08 00 ......pM{.91..
audit: type=1400 audit(1561364963.053:37): apparmor="DENIED" operation="open" profile="man_groff" name="/etc/ld.so.preload" pid=11102 comm="preconv" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1561364963.057:38): apparmor="DENIED" operation="open" profile="man_groff" name="/etc/ld.so.preload" pid=11107 comm="troff" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1561365002.065:39): apparmor="DENIED" operation="open" profile="man_groff" name="/etc/ld.so.preload" pid=11277 comm="preconv" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1561365002.069:40): apparmor="DENIED" operation="open" profile="man_groff" name="/etc/ld.so.preload" pid=11282 comm="troff" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Do you have any idea how I can solve this problem?

That's weird:

update-manager = Segmentation fault
software-properties-gtk = Segmentation fault

Kern.log shows me now when I try to open "update-manager+software-proper" in Terminal.

update-manager[4681]: segfault at b0 ip 00007ff32ea94ac8 sp 00007ff3079ff880 error 4 in ld-2.27.so[7ff32ea88000+27000]
software-proper[5878]: segfault at b0 ip 00007f6074f64ac8 sp 00007fff7434cb00 error 4 in ld-2.27.so[7f6074f58000+27000]

How can I fix?

segfault at b0 ip 00007ff32ea94ac8 sp 00007ff3079ff880 error 4 in ld-2.27.so

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 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 libc6 amd64 2.27-3ubuntu1 [2.824 kB]
Get:2 http://de.archive.ubuntu.com/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: