Hi debian users,
In the process of upgrading my debian testing laptop today, I finally
end up with a broken apt system.
I can't figure out how to get out of the mess I'm in.
I pasted a few commands and theirs results just below.
I hope this is going to make sense for some of you and that you could
give me some hints.
Thank you.
# LANG=C apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
gnome-flashback : Depends: libgnome-desktop-3-18 (>= 3.17.92) but it
is not installed
gnome-screensaver : Depends: libgnome-desktop-3-18 (>= 3.17.92) but it
is not installed
gnome-session-flashback : Depends: gnome-session-bin (>= 3.33.92) but
3.30.1-2 is installed
gnome-settings-daemon : Depends: libgnome-desktop-3-18 (>= 3.17.92)
but it is not installed
Recommends: iio-sensor-proxy but it is not
installed
libgd-graph-perl : Depends: libgd-perl but it is not installed
Depends: libgd-text-perl but it is not installed
libtypes-serialiser-perl : Depends: libcommon-sense-perl but it is not
installed
mutter : Depends: libmutter-5-0 (>= 3.29.4) but it is not installed
python3 : PreDepends: python3-minimal (= 3.7.3-1) but 3.7.5-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
(or specify a solution).
# LANG=C apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
linux-image-4.19.0-4-amd64
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
gnome-session-bin libcommon-sense-perl libgd-perl libgd-text-perl
libgnome-desktop-3-18 libmutter-5-0
libpython3-stdlib python3
Suggested packages:
fonts-dustin python3-doc python3-tk python3-venv
The following NEW packages will be installed:
libcommon-sense-perl libgd-perl libgd-text-perl libgnome-desktop-3-18
libmutter-5-0
The following packages will be upgraded:
gnome-session-bin libpython3-stdlib python3
3 upgraded, 5 newly installed, 0 to remove and 442 not upgraded.
103 not fully installed or removed.
Need to get 0 B/1835 kB of archives.
After this operation, 5101 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Traceback (most recent call last):
File "/usr/share/apt-listchanges/DebianFiles.py", line 117, in readfile
self.stanzas += [ControlStanza(x) for x in f.read().split('\n\n') if x]
File "/usr/share/apt-listchanges/DebianFiles.py", line 117, in <listcomp>
self.stanzas += [ControlStanza(x) for x in f.read().split('\n\n') if x]
File "/usr/share/apt-listchanges/DebianFiles.py", line 70, in __init__
field, value = line.split(':', 1)
ValueError: not enough values to unpack (expected 2, got 1)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 280, in <module>
main(config)
File "/usr/bin/apt-listchanges", line 83, in main
status.readfile('/var/lib/dpkg/status')
File "/usr/share/apt-listchanges/DebianFiles.py", line 120, in readfile
{'what': file, 'errmsg': str(ex)}) from ex
RuntimeError: Error processing '/var/lib/dpkg/status': not enough values
to unpack (expected 2, got 1)
dpkg: error: parsing file '/var/lib/dpkg/status' near line 44958 package
'libqwt-qt5-6':
field name '!use' must be followed by colon
E: Sub-process dpkg --set-selections returned an error code (2)
E: Couldn't clean the currently selected dpkg states