Broken package - Evolution

Imam jedan problem na Ubuntu 9.10

Naime, evolution mi je broken

Iz Synaptic Manager-a uradim Edit->Fix Broken Packages pa Apply te mi javi gresku (slika 2)

Nakon toga iz terminala pokrenem sudo apt-get -f install i dobijem sljedeći izlaz

[code]Reading package lists…
Building dependency tree…
Reading state information…
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
menu python-desktopcouch-records linux-headers-2.6.31-14 desktopcouch
erlang-inets erlang-syntax-tools libsctp1 erlang-mnesia libdns50
libcouchdb-glib-1.0-1 binutils-static couchdb-bin python-couchdb
python-avahi erlang-xmerl libjson-glib-1.0-0 lksctp-tools erlang-crypto
erlang-ssl python-desktopcouch erlang-runtime-tools
linux-headers-2.6.31-14-generic erlang-base erlang-public-key
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
evolution
Suggested packages:
bug-buddy evolution-exchange evolution-dbg evolution-plugins-experimental
Recommended packages:
evolution-plugins
The following packages will be upgraded:
evolution
1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
12 not fully installed or removed.
Need to get 0B/9,195kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? (Reading database …
(Reading database … 5%
(Reading database … 10%
(Reading database … 15%
(Reading database … 20%
(Reading database … 25%
(Reading database … 30%
(Reading database … 35%Y
(Reading database … 40%
(Reading database … 45%
(Reading database … 50%
(Reading database … 55%
(Reading database … 60%
(Reading database … 65%
(Reading database … 70%
(Reading database … 75%
(Reading database … 80%
(Reading database … 85%
(Reading database … 90%
(Reading database … 95%
(Reading database … 100%
(Reading database … 226238 files and directories currently installed.)
Preparing to replace evolution 2.28.1-0ubuntu1 (using …/evolution_2.28.1-0ubuntu2_i386.deb) …
Unpacking replacement evolution …
/tmp/gconf-Y6WnE7/temp.entries:317: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-Y6WnE7/temp.entries:317: parser error : Premature end of data in tag key line 317

^
/tmp/gconf-Y6WnE7/temp.entries:317: parser error : Premature end of data in tag entry line 316

^
/tmp/gconf-Y6WnE7/temp.entries:317: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-Y6WnE7/temp.entries:317: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: warning: old post-removal script returned error exit status 1
dpkg - trying script from the new package instead …
/tmp/gconf-lKTykK/temp.entries:317: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-lKTykK/temp.entries:317: parser error : Premature end of data in tag key line 317

^
/tmp/gconf-lKTykK/temp.entries:317: parser error : Premature end of data in tag entry line 316

^
/tmp/gconf-lKTykK/temp.entries:317: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-lKTykK/temp.entries:317: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error processing /var/cache/apt/archives/evolution_2.28.1-0ubuntu2_i386.deb (–unpack):
subprocess new post-removal script returned error exit status 1
/tmp/gconf-y5XMKz/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-y5XMKz/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-y5XMKz/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-y5XMKz/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-y5XMKz/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace gnome-screensaver 2.28.0-0ubuntu3 (using …/gnome-screensaver_2.28.0-0ubuntu3_i386.deb) …
Unpacking replacement gnome-screensaver …
/tmp/gconf-kQYzQV/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-kQYzQV/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-kQYzQV/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-kQYzQV/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-kQYzQV/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: warning: old post-removal script returned error exit status 1
dpkg - trying script from the new package instead …
/tmp/gconf-RyVPYL/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-RyVPYL/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-RyVPYL/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-RyVPYL/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-RyVPYL/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error processing /var/cache/apt/archives/gnome-screensaver_2.28.0-0ubuntu3_i386.deb (–unpack):
subprocess new post-removal script returned error exit status 1
/tmp/gconf-Msnhal/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-Msnhal/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-Msnhal/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-Msnhal/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-Msnhal/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace nautilus-data 1:2.28.1-0ubuntu1 (using …/nautilus-data_1%3a2.28.1-0ubuntu1_all.deb) …
Unpacking replacement nautilus-data …

/tmp/gconf-paik_w/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-paik_w/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-paik_w/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-paik_w/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-paik_w/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: warning: old post-removal script returned error exit status 1
dpkg - trying script from the new package instead …
/tmp/gconf-i_Q5OL/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-i_Q5OL/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-i_Q5OL/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-i_Q5OL/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-i_Q5OL/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error processing /var/cache/apt/archives/nautilus-data_1%3a2.28.1-0ubuntu1_all.deb (–unpack):
subprocess new post-removal script returned error exit status 1
/tmp/gconf-3dAKOS/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-3dAKOS/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-3dAKOS/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-3dAKOS/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-3dAKOS/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace rhythmbox 0.12.5-0ubuntu4 (using …/rhythmbox_0.12.5-0ubuntu4_i386.deb) …
Unpacking replacement rhythmbox …
^CTraceback (most recent call last):
File “/usr/bin/update-gconf-defaults”, line 154, in
apply_entries(realname)
File “/usr/bin/update-gconf-defaults”, line 82, in apply_entries
{‘HOME’: tmp_home})
File “/usr/lib/python2.6/os.py”, line 599, in spawnvpe
return _spawnvef(mode, file, args, env, execvpe)
File “/usr/lib/python2.6/os.py”, line 535, in _spawnvef
pid = fork()
KeyboardInterrupt
dpkg: warning: old post-removal script killed by signal (Interrupt)
dpkg - trying script from the new package instead …
/tmp/gconf-l9g9Ui/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-l9g9Ui/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-l9g9Ui/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-l9g9Ui/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-l9g9Ui/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error processing /var/cache/apt/archives/rhythmbox_0.12.5-0ubuntu4_i386.deb (–unpack):
subprocess new post-removal script returned error exit status 1
/tmp/gconf-ltQa04/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-ltQa04/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-ltQa04/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-ltQa04/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-ltQa04/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace totem-common 2.28.1-0ubuntu4 (using …/totem-common_2.28.1-0ubuntu4_all.deb) …
Unpacking replacement totem-common …
/tmp/gconf-hV8eDX/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-hV8eDX/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-hV8eDX/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-hV8eDX/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-hV8eDX/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: warning: old post-removal script returned error exit status 1
dpkg - trying script from the new package instead …
/tmp/gconf-haokOh/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-haokOh/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-haokOh/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-haokOh/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-haokOh/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error processing /var/cache/apt/archives/totem-common_2.28.1-0ubuntu4_all.deb (–unpack):
subprocess new post-removal script returned error exit status 1
/tmp/gconf-22eZhK/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-22eZhK/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-22eZhK/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-22eZhK/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-22eZhK/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace gnome-settings-daemon 2.28.1-0ubuntu1 (using …/gnome-settings-daemon_2.28.1-0ubuntu1_i386.deb) …
Unpacking replacement gnome-settings-daemon …
/tmp/gconf-JO97OA/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-JO97OA/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-JO97OA/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-JO97OA/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-JO97OA/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: warning: old post-removal script returned error exit status 1
dpkg - trying script from the new package instead …
/tmp/gconf-MQfjPn/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-MQfjPn/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-MQfjPn/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-MQfjPn/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-MQfjPn/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error processing /var/cache/apt/archives/gnome-settings-daemon_2.28.1-0ubuntu1_i386.deb (–unpack):
subprocess new post-removal script returned error exit status 1
/tmp/gconf-_ZDqAI/temp.entries:311: parser error : PCDATA invalid Char value 16

^
/tmp/gconf-_ZDqAI/temp.entries:311: parser error : Premature end of data in tag key line 311

^
/tmp/gconf-_ZDqAI/temp.entries:311: parser error : Premature end of data in tag entry line 310

^
/tmp/gconf-_ZDqAI/temp.entries:311: parser error : Premature end of data in tag entrylist line 2

^
/tmp/gconf-_ZDqAI/temp.entries:311: parser error : Premature end of data in tag gconfentryfile line 1

^
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Processing triggers for man-db …
Processing triggers for menu …
Processing triggers for desktop-file-utils …
Processing triggers for hicolor-icon-theme …
Processing triggers for shared-mime-info …
Unknown media type in type ‘all/all’

Unknown media type in type ‘all/allfiles’

Unknown media type in type ‘uri/mms’

Unknown media type in type ‘uri/mmst’

Unknown media type in type ‘uri/mmsu’

Unknown media type in type ‘uri/pnm’

Unknown media type in type ‘uri/rtspt’

Unknown media type in type ‘uri/rtspu’

Unknown media type in type ‘fonts/package’

Unknown media type in type ‘interface/x-winamp-skin’

Errors were encountered while processing:
/var/cache/apt/archives/evolution_2.28.1-0ubuntu2_i386.deb
/var/cache/apt/archives/gnome-screensaver_2.28.0-0ubuntu3_i386.deb
/var/cache/apt/archives/nautilus-data_1%3a2.28.1-0ubuntu1_all.deb
/var/cache/apt/archives/rhythmbox_0.12.5-0ubuntu4_i386.deb
/var/cache/apt/archives/totem-common_2.28.1-0ubuntu4_all.deb
/var/cache/apt/archives/gnome-settings-daemon_2.28.1-0ubuntu1_i386.deb[/code]
Kako da rijesim problem?

Ima li koga?

mozes purgat paket uradi update definicija i ponovo installirat

apt-get purge evolution
apt-get update
apt-get install evolution

mada bi ti ja preporucio da uradis u “upgrade” nakon “apt-get update” znaci:

apt-get upgrade

^ - ovo sve iz console ko user root izvrsit

Ne prolazi prva komanda tj. na mogu purgat paket:

Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: menu python-desktopcouch-records linux-headers-2.6.31-14 desktopcouch erlang-inets erlang-syntax-tools libsctp1 erlang-mnesia libdns50 libcouchdb-glib-1.0-1 binutils-static couchdb-bin python-couchdb python-avahi erlang-xmerl libjson-glib-1.0-0 lksctp-tools erlang-crypto erlang-ssl python-desktopcouch erlang-runtime-tools linux-headers-2.6.31-14-generic erlang-base erlang-public-key Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: evolution 0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded. 12 not fully installed or removed. Need to get 0B/6,775kB of archives. After this operation, 7,188kB disk space will be freed. Do you want to continue [Y/n]? dpkg: error processing evolution (--remove): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: evolution
Takodje sam pokusao i : apt-get autoremove evolution kao root, i opet greska:

Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: binutils-static couchdb-bin desktopcouch erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-public-key erlang-runtime-tools erlang-ssl erlang-syntax-tools erlang-xmerl evolution libcouchdb-glib-1.0-1 libdns50 libjson-glib-1.0-0 libsctp1 linux-headers-2.6.31-14 linux-headers-2.6.31-14-generic lksctp-tools menu python-avahi python-couchdb python-desktopcouch python-desktopcouch-records 0 upgraded, 0 newly installed, 25 to remove and 5 not upgraded. 12 not fully installed or removed. Need to get 0B/6,775kB of archives. After this operation, 106MB disk space will be freed. Do you want to continue [Y/n]? y dpkg: error processing evolution (--remove): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: evolution E: Sub-process /usr/bin/dpkg returned an error code (1)

Ovdje imaš haos sa post-removal scriptama, neće raditi ništa dok to prvo ne riješiš. Vedran je našao izlaz: exit 0.

Uradi ovako:

  1. Za svaki paket koji je javio postremoval script error, trebaš dodati exit 0 na početku file-a, odmah nakon set -e. Npr. za evolution će biti otprilike ovakva procedura:

Zatim dodaš exit 0 ispod set -e, a onda memorišeš dokument. Za tačan naziv dokumenta pogledaj u /var/lib/dpkg/info ili koristi Vedranov savjet na linku koji sam naveo na početku post-a.

postrm znači post-removal script
prerm znači pre-removal script (u slučaju da se desi i ovakva greška).

  1. Kad si odradio ovo, probaj korigovati problem sa komandom:

Obrati pažnju da će ovo vjerovatno značiti deinstalaciju nekih paketa, pa budi oprezan. Hajd’ probaj pa javi kako je prošlo.

Uspio sam izbrisati i srediti ove broken pakete, no sada imam drugi problem.

Naime, sada kada odem na System->Preferences->Appearance prilikom mijenjanja tema mijenjaju se samo naslovne trake prozora dok ikone ostaju iste i boje prozora tj. ikone ostaju u GNOME kolekciji pa ne mogu promijeniti npr. u Human ili neku drugu kolekciju.