[Solved] Re: apt --fix-broken install >> ValueError

2019-10-16 Thread rudu

Le 14/10/2019 à 18:36, rudu a écrit :

Do you want to continue? [Y/n]
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

Isn't there a problem with that /var/lib/dpkg/status file too ?



I finally got out of my problem by doing this :
# cd /var/lib/dpkg
# cp status status.backup
# cp status-old status-old.backup
# cp status-old status
# apt --fix-broken install
# apt-get update
# apt-get upgrade
# rm status.backup
# rm status-old.backup

Great thanks to Jonas for his help,

Rudu



Re: apt --fix-broken install >> ValueError

2019-10-14 Thread rudu

Thank you Jonas,
Unfortunately, I'm still stuck. See below.


Le 14/10/2019 à 17:23, Jonas Smedegaard a écrit :

Quoting rudu (2019-10-14 16:41:36)

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.
You might want to run 'apt --fix-broken install' to correct these.

You did as you were told, but...

[...]


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
    File "/usr/bin/apt-listchanges", line 280, in 

...unfortunately apt cannot always automatically fix when a package
hooking into apt itself is broken.

Concretely, you can manually move aside the file
/etc/apt/apt.conf.d/20listchanges and try above apt command again.

When apt is working again and you are done upgrading your system, then
most likely a newer /etc/apt/apt.conf.d/20listchanges has been installed
and you can throw away the one you had put aside.  If there is no such
file installed, then I recommend to _not_ put your file back, but
instead try "apt install --reinstall apt-listchanges" and see if that
installs a fresh configfile.

I did that, but the file 20listchanges hasn't been reinitiated.
And then :

# LANG=C apt install --reinstall apt-listchanges
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 going to be installed
 gnome-screensaver : Depends: libgnome-desktop-3-18 (>= 3.17.92) but it 
is not going to be installed
 gnome-session-flashback : Depends: gnome-session-bin (>= 3.33.92) but 
3.30.1-2 is to be installed
 gnome-settings-daemon : Depends: libgnome-desktop-3-18 (>= 3.17.92) 
but it is not going to be installed
 Recommends: iio-sensor-proxy but it is not 
going to be installed

 libgd-graph-perl : Depends: libgd-perl but it is not going to be installed
    Depends: libgd-text-perl but it is not going to be 
installed
 libtypes-serialiser-perl : Depends: libcommon-sense-perl but it is not 
going to be installed
 mutter : Depends: libmutter-5-0 (>= 3.29.4) but it is not going to be 
installed
 python3 : PreDepends: python3-minimal (= 3.7.3-1) but 3.7.5-1 is to be 
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]
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

Isn't there a problem with that /var/lib/dpkg/status file too ?

Thanks
Rudu




Re: apt --fix-broken install >> ValueError

2019-10-14 Thread Jonas Smedegaard
Quoting rudu (2019-10-14 16:41:36)
> 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.

> You might want to run 'apt --fix-broken install' to correct these.

You did as you were told, but...

[...]

> The above exception was the direct cause of the following exception:
> 
> Traceback (most recent call last):
>    File "/usr/bin/apt-listchanges", line 280, in 

...unfortunately apt cannot always automatically fix when a package 
hooking into apt itself is broken.

Concretely, you can manually move aside the file 
/etc/apt/apt.conf.d/20listchanges and try above apt command again.

When apt is working again and you are done upgrading your system, then 
most likely a newer /etc/apt/apt.conf.d/20listchanges has been installed 
and you can throw away the one you had put aside.  If there is no such 
file installed, then I recommend to _not_ put your file back, but 
instead try "apt install --reinstall apt-listchanges" and see if that 
installs a fresh configfile.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature