non riesco ad aggiornare pacchetti

Asked by Lorenzo Marzetti

Buongiorno sul mio dispositivo, Dell vostro 15 3000 series, ho istallato Ubuntu 21.10 con versione gnome 40.4.0. Ho aggiornamenti da istallare ma come risposta il pc mi dà elaborazione richiesta non riuscita maggiori dettagli Error while installing package: il sottoprocesso installato pacchetto edubuntu-artwork script post-removal ha restituito lo stato di errore 127. Probabilmente ho istallato un pacchetto per sbaglio?

Question information

Language:
Italian Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Please copy/paste the full output that you receive for the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo apt update
sudo apt install -f

Revision history for this message
Lorenzo Marzetti (kptype) said :
#2

Linux ubuntu-machine 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
[sudo] password di user:
Trovato:1 http://security.ubuntu.com/ubuntu impish-security InRelease
Trovato:2 http://it.archive.ubuntu.com/ubuntu impish InRelease
Trovato:3 http://it.archive.ubuntu.com/ubuntu impish-updates InRelease
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
12 pacchetti possono essere aggiornati: eseguire "apt list --upgradable" per vederli.
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno RIMOSSI:
  edubuntu-artwork
0 aggiornati, 0 installati, 1 da rimuovere e 12 non aggiornati.
1 non completamente installati o rimossi.
Dopo quest'operazione, verranno liberati 1.489 kB di spazio su disco.
Continuare? [S/n] s
(Lettura del database... 428628 file e directory attualmente in
stallati.)
Rimozione di edubuntu-artwork (15.12.1)...
/var/lib/dpkg/info/edubuntu-artwork.postrm: 31: update-gconf-de
faults: not found
dpkg: errore nell'elaborare il pacchetto edubuntu-artwork (--re
move):
il sottoprocesso installato pacchetto edubuntu-artwork script
post-removal ha restituito lo stato di errore 127
dpkg: troppi errori, chiusura in corso
Si sono verificati degli errori nell'elaborazione:
edubuntu-artwork
L'operazione è stata bloccata perché si sono verificati troppi
errori.
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@ubuntu-machine:~$

--
 Inviato con Tutanota, la mailbox sicura e senza pubblicità.

14 dic 2021, 19:01 da <email address hidden>:

> Your question #699861 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Please copy/paste the full output that you receive for the following
> commands (to be executed in a terminal window):
>
> uname -a
> lsb_release -crid
> sudo apt update
> sudo apt install -f
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Try the command

LANG=C sudo apt install gconf2 -f

and copy/paste the output

Revision history for this message
Lorenzo Marzetti (kptype) said :
#4

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  gconf-service gconf-service-backend gconf2-common libgconf-2-4
Suggested packages:
  gconf-defaults-service
The following packages will be REMOVED:
  edubuntu-artwork
The following NEW packages will be installed:
  gconf-service gconf-service-backend gconf2 gconf2-common libgconf-2-4
0 upgraded, 5 newly installed, 1 to remove and 12 not upgraded.
1 not fully installed or removed.
Need to get 945 kB of archives.
After this operation, 7.234 kB of additional disk space will be used.
Do you want to continue? [Y/n]

--
 Inviato con Tutanota, la mailbox sicura e senza pubblicità.

15 dic 2021, 11:05 da <email address hidden>:

> Your question #699861 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Try the command
>
> LANG=C sudo apt install gconf2 -f
>
> and copy/paste the output
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/699861/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

You have to confirm the execution, either by entering y or just pressing the "enter" key.

Revision history for this message
Lorenzo Marzetti (kptype) said :
#6

--
 Inviato con Tutanota, la mailbox sicura e senza pubblicità.

15 dic 2021, 11:31 da <email address hidden>:

> Your question #699861 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> You have to confirm the execution, either by entering y or just pressing
> the "enter" key.
>
> -- Get:1 > http://it.archive.ubuntu.com/ubuntu> impish/universe amd64 gconf2-common all 3.2.6-7ubuntu2 [698 kB]
> Get:2 > http://it.archive.ubuntu.com/ubuntu> impish/universe amd64 libgconf-2-4 amd64 3.2.6-7ubuntu2 [86,0 kB]
> Get:3 > http://it.archive.ubuntu.com/ubuntu> impish/universe amd64 gconf-service-backend amd64 3.2.6-7ubuntu2 [59,3 kB]
> Get:4 > http://it.archive.ubuntu.com/ubuntu> impish/universe amd64 gconf-service amd64 3.2.6-7ubuntu2 [17,4 kB]
> Get:5 > http://it.archive.ubuntu.com/ubuntu> impish/universe amd64 gconf2 amd64 3.2.6-7ubuntu2 [83,9 kB]
> Fetched 945 kB in 3s (321 kB/s)
> (Reading database ... 428628 files and directories currently installed.)
> Removing edubuntu-artwork (15.12.1) ...
> /var/lib/dpkg/info/edubuntu-artwork.postrm: 31: update-gconf-defaults: not found
> dpkg: error processing package edubuntu-artwork (--remove):
> installed edubuntu-artwork package post-removal script subprocess returned erro
> r exit status 127
> dpkg: too many errors, stopping
> Errors were encountered while processing:
> edubuntu-artwork
> Processing was halted because there were too many errors.
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> user@ubuntu-machine:~$
>
>
>
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/699861/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Try

LANG=C sudo dpkg -i /var/cache/apt/archives/*gconf*_3.2.6-7ubuntu2_a*.deb
LANG=C sudo apt install -f

and report the results.

Revision history for this message
Lorenzo Marzetti (kptype) said :
#8

Selecting previously unselected package gconf2.
(Reading database ... 428629 files and directories currently installed.)
Preparing to unpack .../gconf2_3.2.6-7ubuntu2_amd64.deb ...
Unpacking gconf2 (3.2.6-7ubuntu2) ...
Selecting previously unselected package gconf2-common.
Preparing to unpack .../gconf2-common_3.2.6-7ubuntu2_all.deb ...
Unpacking gconf2-common (3.2.6-7ubuntu2) ...
Selecting previously unselected package gconf-service.
Preparing to unpack .../gconf-service_3.2.6-7ubuntu2_amd64.deb ...
Unpacking gconf-service (3.2.6-7ubuntu2) ...
Selecting previously unselected package gconf-service-backend.
Preparing to unpack .../gconf-service-backend_3.2.6-7ubuntu2_amd64.deb ...
Unpacking gconf-service-backend (3.2.6-7ubuntu2) ...
Selecting previously unselected package libgconf-2-4:amd64.
Preparing to unpack .../libgconf-2-4_3.2.6-7ubuntu2_amd64.deb ...
Unpacking libgconf-2-4:amd64 (3.2.6-7ubuntu2) ...
Setting up gconf2-common (3.2.6-7ubuntu2) ...
Installing new version of config file /etc/X11/Xsession.d/70gconfd_path-on-session ...
Processing triggers for sgml-base (1.30) ...
Setting up libgconf-2-4:amd64 (3.2.6-7ubuntu2) ...
Setting up gconf-service-backend (3.2.6-7ubuntu2) ...
Setting up gconf-service (3.2.6-7ubuntu2) ...
Setting up gconf2 (3.2.6-7ubuntu2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  edubuntu-artwork
0 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 1.489 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 428806 files and directories currently installed.)
Removing edubuntu-artwork (15.12.1) ...
Processing triggers for libglib2.0-0:amd64 (2.68.4-1ubuntu1) ...

--
 Inviato con Tutanota, la mailbox sicura e senza pubblicità.

15 dic 2021, 11:55 da <email address hidden>:

> Your question #699861 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Try
>
> LANG=C sudo dpkg -i /var/cache/apt/archives/*gconf*_3.2.6-7ubuntu2_a*.deb
> LANG=C sudo apt install -f
>
> and report the results.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/699861/+confirm?answer_id=6
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

I think the problem is solved.

If you want, you can uninstall the packages again, which have been installed for repairing the problem:

sudo apt purge gconf2-common libgconf-2-4:amd64 gconf-service-backend gconf-service gconf2

Revision history for this message
Lorenzo Marzetti (kptype) said :
#10

OK, thank you, Manfred.

--
 Inviato con Tutanota, la mailbox sicura e senza pubblicità.

15 dic 2021, 12:11 da <email address hidden>:

> Your question #699861 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> I think the problem is solved.
>
> If you want, you can uninstall the packages again, which have been
> installed for repairing the problem:
>
> sudo apt purge gconf2-common libgconf-2-4:amd64 gconf-service-backend
> gconf-service gconf2
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/699861/+confirm?answer_id=8
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/699861
>
> You received this question notification because you asked the question.
>

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#11

There is Bug #1732562 which covers this problem.

If package installation works again, then you should set the status of this question document to "solved".

Revision history for this message
Lorenzo Marzetti (kptype) said :
#12

Thanks Manfred Hampl, that solved my question.