PDA

View Full Version : [SOLVED] difficult situation_cannot update upgrade or solve my conflicts



nkbatsi
March 18th, 2010, 08:11 PM
ok i have this difficult for me problem, it started here

http://ubuntuforums.org/showthread.php?t=1429724

i do

sudo apt-get update

and i get

Ign file: apt-build Release.gpg
Ign file: apt-build/main Translation-en_US
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
Ign file: apt-build/main Packages
Get:2 http://dl.google.com stable Release.gpg [189B]
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Hit http://packages.medibuntu.org karmic Release.gpg
Get:3 http://security.ubuntu.com karmic-security Release.gpg [189B]
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Hit http://archive.canonical.com karmic Release
Hit http://archive.canonical.com karmic/partner Packages
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Get:4 http://security.ubuntu.com karmic-security Release [44.1kB]
Hit http://apt.wicd.net jaunty Release.gpg
Ign http://apt.wicd.net jaunty/extras Translation-en_US
Hit http://archive.canonical.com karmic/partner Sources
Hit http://apt.wicd.net jaunty Release
Ign http://packages.medibuntu.org karmic/free Translation-en_US
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US
Hit http://packages.medibuntu.org karmic Release
Ign http://apt.wicd.net jaunty/extras Packages
Hit http://packages.medibuntu.org karmic/free Packages
Ign http://apt.wicd.net jaunty/extras Packages
Hit http://packages.medibuntu.org karmic/non-free Packages
Hit http://packages.medibuntu.org karmic/free Sources
Hit http://packages.medibuntu.org karmic/non-free Sources
Hit http://apt.wicd.net jaunty/extras Packages
Get:5 http://security.ubuntu.com karmic-security/main Packages [81.3kB]
Get:6 http://security.ubuntu.com karmic-security/universe Packages [38.8kB]
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US
Ign http://archive.ubuntu.com karmic/universe Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic/multiverse Translation-en_US
Get:7 http://archive.ubuntu.com karmic-updates Release.gpg [189B]
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-backports Release.gpg
Ign http://archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Get:8 http://archive.ubuntu.com karmic-proposed Release.gpg [189B]
Ign http://archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic Release
Get:9 http://archive.ubuntu.com karmic-updates Release [44.1kB]
Get:10 http://security.ubuntu.com karmic-security/restricted Packages [14B]
Get:11 http://security.ubuntu.com karmic-security/multiverse Packages [1,666B]
Hit http://archive.ubuntu.com karmic-backports Release
Get:12 http://archive.ubuntu.com karmic-proposed Release [44.1kB]
Hit http://archive.ubuntu.com karmic/main Packages
Hit http://archive.ubuntu.com karmic/universe Packages
Hit http://archive.ubuntu.com karmic/restricted Packages
Hit http://archive.ubuntu.com karmic/multiverse Packages
Get:13 http://archive.ubuntu.com karmic-updates/main Packages [191kB]
Get:14 http://archive.ubuntu.com karmic-updates/universe Packages [112kB]
Get:15 http://archive.ubuntu.com karmic-updates/restricted Packages [14B]
Get:16 http://archive.ubuntu.com karmic-updates/multiverse Packages [7,369B]
Hit http://archive.ubuntu.com karmic-backports/main Packages
Hit http://archive.ubuntu.com karmic-backports/universe Packages
Hit http://archive.ubuntu.com karmic-backports/restricted Packages
Hit http://archive.ubuntu.com karmic-backports/multiverse Packages
Get:17 http://archive.ubuntu.com karmic-proposed/main Packages [69.1kB]
Get:18 http://archive.ubuntu.com karmic-proposed/universe Packages [21.0kB]
Get:19 http://archive.ubuntu.com karmic-proposed/restricted Packages [14B]
Get:20 http://archive.ubuntu.com karmic-proposed/multiverse Packages [544B]
Ign http://dl.google.com stable/main Translation-en_US
Get:21 http://dl.google.com stable Release [2,540B]
Get:22 http://dl.google.com stable/main Packages [914B]
Fetched 659kB in 2min 1s (5,432B/s)
Reading package lists... Done
W: Duplicate sources.list entry http://packages.medibuntu.org karmic/free Packages (/var/lib/apt/lists/packages.medibuntu.org_dists_karmic_free_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.medibuntu.org karmic/non-free Packages (/var/lib/apt/lists/packages.medibuntu.org_dists_karmic_non-free_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems


then i do


sudo apt-get update -f

and i get



Ign file: apt-build Release.gpg
Ign file: apt-build/main Translation-en_US
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
Ign file: apt-build/main Packages
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Hit http://archive.canonical.com karmic Release
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Hit http://apt.wicd.net jaunty Release.gpg
Ign http://apt.wicd.net jaunty/extras Translation-en_US
Hit http://packages.medibuntu.org karmic Release.gpg
Ign http://packages.medibuntu.org karmic/free Translation-en_US
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://archive.canonical.com karmic/partner Sources
Hit http://packages.medibuntu.org karmic Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://packages.medibuntu.org karmic/free Packages
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://packages.medibuntu.org karmic/non-free Packages
Hit http://packages.medibuntu.org karmic/free Sources
Hit http://packages.medibuntu.org karmic/non-free Sources
Hit http://apt.wicd.net jaunty Release
Ign http://apt.wicd.net jaunty/extras Packages
Ign http://apt.wicd.net jaunty/extras Packages
Get:2 http://dl.google.com stable Release.gpg [189B]
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US
Ign http://archive.ubuntu.com karmic/universe Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-updates Release.gpg
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-backports Release.gpg
Ign http://archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-proposed Release.gpg
Ign http://archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic Release
Hit http://archive.ubuntu.com karmic-updates Release
Hit http://archive.ubuntu.com karmic-backports Release
Hit http://archive.ubuntu.com karmic-proposed Release
Hit http://apt.wicd.net jaunty/extras Packages
Hit http://archive.ubuntu.com karmic/main Packages
Hit http://archive.ubuntu.com karmic/universe Packages
Hit http://archive.ubuntu.com karmic/restricted Packages
Hit http://archive.ubuntu.com karmic/multiverse Packages
Hit http://archive.ubuntu.com karmic-updates/main Packages
Hit http://archive.ubuntu.com karmic-updates/universe Packages
Hit http://archive.ubuntu.com karmic-updates/restricted Packages
Hit http://archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://archive.ubuntu.com karmic-backports/main Packages
Hit http://archive.ubuntu.com karmic-backports/universe Packages
Hit http://archive.ubuntu.com karmic-backports/restricted Packages
Hit http://archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://archive.ubuntu.com karmic-proposed/main Packages
Hit http://archive.ubuntu.com karmic-proposed/universe Packages
Hit http://archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://archive.ubuntu.com karmic-proposed/multiverse Packages
Ign http://dl.google.com stable/main Translation-en_US
Get:3 http://dl.google.com stable Release [2,540B]
Get:4 http://dl.google.com stable/main Packages [914B]
Fetched 3,643B in 2min 6s (29B/s)
Reading package lists... Done


and everything seems fine

then i do


sudo apt-get upgrade


Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
libmagickwand2: Depends: libltdl7 (= := 2.2.6a) but 2.2.6a-4 is installed
E: Unmet dependencies. Try using -f.

and so i do


sudo apt-get upgrade -f

and everything starts downloading as it should

sudo apt-get update -f
Ign file: apt-build Release.gpg
Ign file: apt-build/main Translation-en_US
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
Ign file: apt-build/main Packages
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Hit http://archive.canonical.com karmic Release
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Hit http://apt.wicd.net jaunty Release.gpg
Ign http://apt.wicd.net jaunty/extras Translation-en_US
Hit http://packages.medibuntu.org karmic Release.gpg
Ign http://packages.medibuntu.org karmic/free Translation-en_US
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://archive.canonical.com karmic/partner Sources
Hit http://packages.medibuntu.org karmic Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://packages.medibuntu.org karmic/free Packages
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://packages.medibuntu.org karmic/non-free Packages
Hit http://packages.medibuntu.org karmic/free Sources
Hit http://packages.medibuntu.org karmic/non-free Sources
Hit http://apt.wicd.net jaunty Release
Ign http://apt.wicd.net jaunty/extras Packages
Ign http://apt.wicd.net jaunty/extras Packages
Get:2 http://dl.google.com stable Release.gpg [189B]
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US
Ign http://archive.ubuntu.com karmic/universe Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-updates Release.gpg
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-backports Release.gpg
Ign http://archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic-proposed Release.gpg
Ign http://archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/universe Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Hit http://archive.ubuntu.com karmic Release
Hit http://archive.ubuntu.com karmic-updates Release
Hit http://archive.ubuntu.com karmic-backports Release
Hit http://archive.ubuntu.com karmic-proposed Release
Hit http://apt.wicd.net jaunty/extras Packages
Hit http://archive.ubuntu.com karmic/main Packages
Hit http://archive.ubuntu.com karmic/universe Packages
Hit http://archive.ubuntu.com karmic/restricted Packages
Hit http://archive.ubuntu.com karmic/multiverse Packages
Hit http://archive.ubuntu.com karmic-updates/main Packages
Hit http://archive.ubuntu.com karmic-updates/universe Packages
Hit http://archive.ubuntu.com karmic-updates/restricted Packages
Hit http://archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://archive.ubuntu.com karmic-backports/main Packages
Hit http://archive.ubuntu.com karmic-backports/universe Packages
Hit http://archive.ubuntu.com karmic-backports/restricted Packages
Hit http://archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://archive.ubuntu.com karmic-proposed/main Packages
Hit http://archive.ubuntu.com karmic-proposed/universe Packages
Hit http://archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://archive.ubuntu.com karmic-proposed/multiverse Packages
Ign http://dl.google.com stable/main Translation-en_US
Get:3 http://dl.google.com stable Release [2,540B]
Get:4 http://dl.google.com stable/main Packages [914B]
Fetched 3,643B in 2min 6s (29B/s)
Reading package lists... Done
nkbatsi@kavourdistiri:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
libmagickwand2: Depends: libltdl7 (= := 2.2.6a) but 2.2.6a-4 is installed
E: Unmet dependencies. Try using -f.
nkbatsi@kavourdistiri:~$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages have been kept back:
linux-image-generic
The following packages will be upgraded:
app-install-data-partner devicekit-disks gstreamer0.10-plugins-bad
libaudiofile0 libmagickwand2 libpng12-0 libpng12-dev libpoppler-glib4
libpoppler5 linux-headers-2.6.31-20 linux-headers-2.6.31-20-generic
linux-libc-dev mountall poppler-utils python-apt python-papyon
16 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 14.8MB of archives.
After this operation, 36.9kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://security.ubuntu.com karmic-security/main libaudiofile0 0.2.6-7ubuntu2.1 [81.9kB]
Get:2 http://archive.ubuntu.com karmic-proposed/main mountall 1.0.2 [81.3kB]
Get:3 http://archive.ubuntu.com karmic-proposed/main python-apt 0.7.13.2ubuntu4.1 [340kB]
Get:4 http://security.ubuntu.com karmic-security/main libpng12-dev 1.2.37-1ubuntu0.1 [255kB]
Get:5 http://archive.ubuntu.com karmic-proposed/main app-install-data-partner 12.9.10.3 [43.2kB]
Get:6 http://security.ubuntu.com karmic-security/main libpng12-0 1.2.37-1ubuntu0.1 [171kB]
Get:7 http://security.ubuntu.com karmic-security/main linux-headers-2.6.31-20 2.6.31-20.58 [9,540kB]
Get:8 http://archive.ubuntu.com karmic-proposed/main devicekit-disks 007-2ubuntu5 [166kB]
Get:9 http://archive.ubuntu.com karmic-proposed/universe gstreamer0.10-plugins-bad 0.10.14-4ubuntu1.1 [1,325kB]
Get:10 http://archive.ubuntu.com karmic/main libmagickwand2 7:6.5.1.0-1.1ubuntu3 [346kB]
Get:11 http://archive.ubuntu.com karmic-proposed/main libpoppler5 0.12.0-0ubuntu2.2 [726kB]
Get:12 http://archive.ubuntu.com karmic-proposed/main libpoppler-glib4 0.12.0-0ubuntu2.2 [72.4kB]
Get:13 http://archive.ubuntu.com karmic-proposed/main poppler-utils 0.12.0-0ubuntu2.2 [80.1kB]
Get:14 http://archive.ubuntu.com karmic-proposed/main python-papyon 0.4.3-1ubuntu1.1 [150kB]
Get:15 http://security.ubuntu.com karmic-security/main linux-headers-2.6.31-20-generic 2.6.31-20.58 [683kB]
Get:16 http://security.ubuntu.com karmic-security/main linux-libc-dev 2.6.31-20.58 [751kB]
Fetched 14.8MB in 8min 27s (29.2kB/s)
dpkg: parse error, in file '/var/lib/dpkg/status' near line 9473 package 'libmagickwand2':
`Depends' field, reference to `libltdl7': version contains ` '
E: Sub-process /usr/bin/dpkg returned an error code (2)


this is my nighmare, these two packages conflicting:

libmagickwand2

libltdl7


if i try to unistall them i ''ll have a big problem with dependencies cause too many packages will be uninstalled

can you people out there please help !!!

sebastianabate
March 19th, 2010, 12:29 AM
ok i have this difficult for me problem, it started here

http://ubuntuforums.org/showthread.php?t=1429724

i do

sudo apt-get update

and i get

[...]
Reading package lists... Done
W: Duplicate sources.list entry http://packages.medibuntu.org karmic/free Packages (/var/lib/apt/lists/packages.medibuntu.org_dists_karmic_free_binary-i386_Packages)
W: Duplicate sources.list entry http://packages.medibuntu.org karmic/non-free Packages (/var/lib/apt/lists/packages.medibuntu.org_dists_karmic_non-free_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems


You have the medibuntu repositorie twice in the /etc/apt/sources.list file, remove one.



then i do


sudo apt-get upgrade


Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
libmagickwand2: Depends: libltdl7 (= := 2.2.6a) but 2.2.6a-4 is installed
E: Unmet dependencies. Try using -f.

and so i do


sudo apt-get upgrade -fYou must run "apt-get install -f" (note the red line in the previous paragraph)

nkbatsi
March 20th, 2010, 05:24 AM
thanks for the answer and thanks for reading such a big post.

i 'll give it a try

nkbatsi
March 20th, 2010, 05:44 AM
i removed the duplicate entry and i did

sudo apt-get -f install


Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libmagickwand2
The following packages will be upgraded:
libmagickwand2
1 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Need to get 346kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com karmic/main libmagickwand2 7:6.5.1.0-1.1ubuntu3 [346kB]
Fetched 346kB in 12s (28.1kB/s)
dpkg: parse error, in file '/var/lib/dpkg/status' near line 9473 package 'libmagickwand2':
`Depends' field, reference to `libltdl7': version contains ` '
E: Sub-process /usr/bin/dpkg returned an error code (2)

but the problem persists

any other suggestions?

please

sebastianabate
March 20th, 2010, 06:40 AM
Actually the original problem was solved... you just have a new one ](*,)

It seems that you have a corrupted status file, try this

1) Backup the current file

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.orig

2) Restore the backup file (yes, Ubuntu keeps a backup of this file by its own, isn't it great?)

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status

3) Reinstall the problematic dependency (just in case)

sudo apt-get install --reinstall libltdl7

4) Check if everything is ok

sudo apt-get -f install

nkbatsi
March 20th, 2010, 09:25 PM
Actually the original problem was solved... you just have a new one ](*,)

It seems that you have a corrupted status file, try this

1) Backup the current file

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.orig

2) Restore the backup file (yes, Ubuntu keeps a backup of this file by its own, isn't it great?)

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status

3) Reinstall the problematic dependency (just in case)

sudo apt-get install --reinstall libltdl7

4) Check if everything is ok

sudo apt-get -f install



A MILLION THANKS TO YOU SEBASTINABATE !!!

you solved my problem, thank you for taking the time to read my thread