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

I can't update&upgrade anymore @ UM 18.04 v2 LTS.
Update-Manager don't open.

I do in Terminal:

/usr/bin/update-manager

Output:

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

DEBUG_UPDATE_MANAGER=1 do-release-upgrade -c

Output:

Checking for a new Ubuntu release
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
There is no development version of an LTS available.
To upgrade to the latest non-LTS develoment release 
Segmentation fault

How can I fix?
"result of meta-release download: ''"

I don't use a proxy.

/usr/bin/update-manager

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

I edited "/etc/update-manager/meta-release"

...from https to http:

[METARELEASE]
URI_LTS = http://changelogs.ubuntu.com/meta-release-lts

DEBUG_UPDATE_MANAGER=1 do-release-upgrade -c

Output:

MetaRelease.__init__() useDevel=False useProposed=False
/etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release 
/etc/update-manager/meta-release: http://changelogs.ubuntu.com/meta-release-lts 
/etc/update-manager/meta-release: -development 
/etc/update-manager/meta-release: -proposed 
metarelease-uri: http://changelogs.ubuntu.com/meta-release-lts
MetaRelease.download()
reading file '/home/nwo/.cache/update-manager-core/meta-release-lts'
have self.metarelease_information
MetaRelease.parse()
current dist name: 'bionic'
found distro name: 'dapper'
found distro name: 'hardy'
found distro name: 'lucid'
found distro name: 'precise'
found distro name: 'trusty'
found distro name: 'xenial'
found distro name: 'bionic'
There is no development version of an LTS available.
Segmentation fault

The https error is gone, but Segmentation fault is there.

when I run in Terminal this command:

# update-manager
# software-properties-gtk

Output:

Segmentation fault

How can I fix that?

DEBUG_UPDATE_MANAGER=1 update-manager

Output:

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

/var/crash says:

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

May be it is worth to try reinstall update manager with apt?

A segmentation fault is normally something serious. It could be a problem with your system's installation of Python since the programs you are trying to run are written in Python.

However, all these could be failing because of a problem with Apt. Check the output of /etc/apt/source.list and clear the /etc/apt/sources.list.d/ folder (as superuser) to remove any third party sources, and refresh the cache:

sudo apt update

"done"

I removed Update-Manager, re-installed it, error isn't gone:

I run:
software-properties-gtk
=Segmentation fault

update-manager
=Segmentation fault

a week ago I was able to update my system.

ProblemType: Crash
CurrentDesktop: MATE
Date: Sat Nov 17 20:39:26 2018
ExecutablePath: /usr/bin/update-manager
ExecutableTimestamp: 1538681637
InterpreterPath: /usr/bin/python3.6
ProcCmdline: /usr/bin/python3 /usr/bin/update-manager
ProcCwd: /home/user
ProcEnviron:
 LANGUAGE=en_US
 LC_TIME=de_DE.UTF-8
 LC_MONETARY=de_DE.UTF-8
 PATH=(custom, user)
 LC_ADDRESS=de_DE.UTF-8
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 LC_TELEPHONE=de_DE.UTF-8
 LC_NAME=de_DE.UTF-8
 SHELL=/bin/bash
 LC_MEASUREMENT=de_DE.UTF-8
 LC_IDENTIFICATION=de_DE.UTF-8
 LC_NUMERIC=de_DE.UTF-8
 LC_PAPER=de_DE.UTF-8

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'm going to assume you are able to apt install and apt update successfully, and none of the Python applications (update-manager, software-properties-gtk, do-release-update) are able to start. It's possible :ubuntu_mate: Software Boutique will crash too.

Check the correct Python modules are being loaded. What is the output of this command?

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

This should output (on 18.04):

/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

If it does not, does running this work?

export PYTHONPATH=/usr/lib/python3.6:/usr/lib/python3/dist-packages
update-manager

If it still segfaults,try reinstalling these main dependencies of update-manager in case they are corrupted:

sudo apt install --reinstall python3-update-manager update-manager-core gir1.2-gtk-3.0 python3-gi python3-dbus python3-aptdaemon.gtk3widgets

The stacktrace (and code) suggests to me part of the program isn't initialising properly (likely one of the libraries/dependencies) and crashes the application as a result.


Since you say you were able to update a week ago, presumably some recent updates have broken the system? Maybe paste us a snippet of your /var/log/apt/history.log (and place in code tags please)

python -c "import sys; print('\n'.join(sys.path))"

Output:
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/home/user/.local/lib/python2.7/site-packages
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0

Something wrong?

I completly removed these packages:
update-manager
ubuntu-release-upgrader-gtk
update-notifier
update-notifier-common
update-manager-core
python3-distupgrade
python3-update-manager
ubuntu-release-upgrader-core

I can run Updates/Upgrades via Synaptic.

In my apt. log are only entries from today.

So, these packages need I to install again right?

python3-update-manager update-manager-core gir1.2-gtk-3.0 python3-gi python3-dbus python3-aptdaemon.gtk3widgets

Are these packages enough? Or are they missing packets?

Sorry, I made a typo. It should be python3 (not python). I amended the post, my bad. :man_facepalming:

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

You could try reinstalling these key dependencies (GTK GI bindings, Python GI & DBus)

sudo apt install --reinstall gir1.2-gtk-3.0 python3-gi python3-dbus python3-aptdaemon.gtk3widgets

:point_up: You probably wouldn't want to remove/purge them explicitly since that might remove many applications that depend on them.

Then try installing the software - which will automatically install the other packages it depends on:

sudo apt install update-manager

Since you're able to use Synaptic and Apt via the command line, I'm pretty sure it's a problem with your system's installation of Python. These applications are based on python3.

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