Unresolved dependencies problem

Asked by Ian Sinclair

Copy of terminal actions used in diagnosis
ian@Big-Dell:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for ian:
ian@Big-Dell:~$ uname -a
Linux Big-Dell 2.6.32-41-generic #89-Ubuntu SMP Fri Apr 27 22:22:09 UTC 2012 i686 GNU/Linux
ian@Big-Dell:~$ sudo rm /var/lib/apt/lists/lock
ian@Big-Dell:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
ian@Big-Dell:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
ian@Big-Dell:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
ian@Big-Dell:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
ian@Big-Dell:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
ian@Big-Dell:~$ sudo rm -rf /var/lib/dpkg/updates/*
ian@Big-Dell:~$ sudo rm -rf /var/lib/apt/lists
ian@Big-Dell:~$ sudo rm /var/cache/apt/*.bin
ian@Big-Dell:~$ sudo mkdir /var/lib/apt/lists
ian@Big-Dell:~$ sudo mkdir /var/lib/apt/lists/partial
ian@Big-Dell:~$ LANG=C;sudo apt-get clean
ian@Big-Dell:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ian@Big-Dell:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  fonts-opensymbol*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 401kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ...
dpkg: warning: files list file for package `fonts-opensymbol' missing, assuming package has no files currently installed.
(Reading database ... 128425 files and directories currently installed.)
Removing fonts-opensymbol ...
ian@Big-Dell:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://archive.canonical.com lucid Release.gpg [198B]
Get:2 http://security.ubuntu.com lucid-security Release.gpg [198B]
Get:3 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:4 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:5 http://gb.archive.ubuntu.com lucid Release.gpg [189B]
Get:6 http://gb.archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:7 http://ppa.launchpad.net oneiric Release.gpg [316B]
Get:8 http://archive.canonical.com lucid Release [8215B]
Get:9 http://security.ubuntu.com lucid-security Release [57.3kB]
Get:10 http://gb.archive.ubuntu.com lucid Release [57.2kB]
Get:11 http://ppa.launchpad.net lucid Release [14.0kB]
Get:12 http://ppa.launchpad.net lucid Release [13.9kB]
Get:13 http://archive.canonical.com lucid/partner Sources [6712B]
Get:14 http://ppa.launchpad.net oneiric Release [9739B]
Get:15 http://security.ubuntu.com lucid-security/main Packages [412kB]
Get:16 http://ppa.launchpad.net lucid/main Packages [83.7kB]
Get:17 http://gb.archive.ubuntu.com lucid-updates Release [57.3kB]
Get:18 http://ppa.launchpad.net lucid/main Packages [32.9kB]
Get:19 http://gb.archive.ubuntu.com lucid/main Packages [1386kB]
Get:20 http://ppa.launchpad.net oneiric/main Packages [1630B]
Get:21 http://security.ubuntu.com lucid-security/restricted Packages [2855B]
Get:22 http://security.ubuntu.com lucid-security/main Sources [122kB]
Get:23 http://security.ubuntu.com lucid-security/restricted Sources [1259B]
Get:24 http://security.ubuntu.com lucid-security/universe Packages [129kB]
Get:25 http://security.ubuntu.com lucid-security/universe Sources [39.6kB]
Get:26 http://security.ubuntu.com lucid-security/multiverse Packages [5368B]
Get:27 http://security.ubuntu.com lucid-security/multiverse Sources [2323B]
Get:28 http://gb.archive.ubuntu.com lucid/restricted Packages [6208B]
Get:29 http://gb.archive.ubuntu.com lucid/main Sources [659kB]
Get:30 http://gb.archive.ubuntu.com lucid/restricted Sources [3775B]
Get:31 http://gb.archive.ubuntu.com lucid/universe Packages [5448kB]
Get:32 http://gb.archive.ubuntu.com lucid/universe Sources [3165kB]
Get:33 http://gb.archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:34 http://gb.archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:35 http://gb.archive.ubuntu.com lucid-updates/main Packages [613kB]
Get:36 http://gb.archive.ubuntu.com lucid-updates/restricted Packages [4617B]
Get:37 http://gb.archive.ubuntu.com lucid-updates/main Sources [221kB]
Get:38 http://gb.archive.ubuntu.com lucid-updates/restricted Sources [2194B]
Get:39 http://gb.archive.ubuntu.com lucid-updates/universe Packages [268kB]
Get:40 http://gb.archive.ubuntu.com lucid-updates/universe Sources [98.8kB]
Get:41 http://gb.archive.ubuntu.com lucid-updates/multiverse Packages [11.3kB]
Get:42 http://gb.archive.ubuntu.com lucid-updates/multiverse Sources [5537B]
Fetched 13.2MB in 15s (865kB/s)
Reading package lists... Done
ian@Big-Dell:~$ sudo dpkg --configure -a
ian@Big-Dell:~$ sudo dpkg --clear-avail
ian@Big-Dell:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ian@Big-Dell:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ian@Big-Dell:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.canonical.com lucid Release.gpg
Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B]
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net oneiric Release.gpg
Get:2 http://gb.archive.ubuntu.com lucid Release.gpg [189B]
Get:3 http://gb.archive.ubuntu.com lucid-updates Release.gpg [198B]
Hit http://archive.canonical.com lucid Release
Get:4 http://security.ubuntu.com lucid-security Release [57.3kB]
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Get:5 http://gb.archive.ubuntu.com lucid Release [57.2kB]
Hit http://archive.canonical.com lucid/partner Sources
Hit http://ppa.launchpad.net oneiric Release
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net oneiric/main Packages
Get:6 http://gb.archive.ubuntu.com lucid-updates Release [57.3kB]
Get:7 http://security.ubuntu.com lucid-security/main Packages [412kB]
Get:8 http://gb.archive.ubuntu.com lucid/main Packages [1386kB]
Get:9 http://security.ubuntu.com lucid-security/restricted Packages [2855B]
Get:10 http://security.ubuntu.com lucid-security/main Sources [122kB]
Get:11 http://security.ubuntu.com lucid-security/restricted Sources [1259B]
Get:12 http://security.ubuntu.com lucid-security/universe Packages [129kB]
Get:13 http://security.ubuntu.com lucid-security/universe Sources [39.6kB]
Get:14 http://security.ubuntu.com lucid-security/multiverse Packages [5368B]
Get:15 http://security.ubuntu.com lucid-security/multiverse Sources [2323B]
Get:16 http://gb.archive.ubuntu.com lucid/restricted Packages [6208B]
Get:17 http://gb.archive.ubuntu.com lucid/main Sources [659kB]
Get:18 http://gb.archive.ubuntu.com lucid/restricted Sources [3775B]
Get:19 http://gb.archive.ubuntu.com lucid/universe Packages [5448kB]
Get:20 http://gb.archive.ubuntu.com lucid/universe Sources [3165kB]
Get:21 http://gb.archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:22 http://gb.archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:23 http://gb.archive.ubuntu.com lucid-updates/main Packages [613kB]
Get:24 http://gb.archive.ubuntu.com lucid-updates/restricted Packages [4617B]
Get:25 http://gb.archive.ubuntu.com lucid-updates/main Sources [221kB]
Get:26 http://gb.archive.ubuntu.com lucid-updates/restricted Sources [2194B]
Get:27 http://gb.archive.ubuntu.com lucid-updates/universe Packages [268kB]
Get:28 http://gb.archive.ubuntu.com lucid-updates/universe Sources [98.8kB]
Get:29 http://gb.archive.ubuntu.com lucid-updates/multiverse Packages [11.3kB]
Get:30 http://gb.archive.ubuntu.com lucid-updates/multiverse Sources [5537B]
Fetched 13.1MB in 14s (902kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  gthumb gthumb-data
The following NEW packages will be installed:
  bison flex gstreamer0.10-gnomevfs m4
0 upgraded, 4 newly installed, 2 to remove and 0 not upgraded.
Need to get 1023kB of archives.
After this operation, 5997kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ lucid/main m4 1.4.13-3 [241kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ lucid/main flex 2.5.35-9 [244kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ lucid/main bison 1:2.4.1.dfsg-3 [468kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu/ lucid/universe gstreamer0.10-gnomevfs 0.10.28-1 [70.7kB]
Fetched 1023kB in 1s (875kB/s)
(Reading database ... 128425 files and directories currently installed.)
Removing gthumb ...
Removing gthumb-data ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.C.cache...
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-support ...
Selecting previously deselected package m4.
(Reading database ... 128202 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.13-3_i386.deb) ...
Selecting previously deselected package flex.
Unpacking flex (from .../flex_2.5.35-9_i386.deb) ...
Selecting previously deselected package bison.
Unpacking bison (from .../bison_1%3a2.4.1.dfsg-3_i386.deb) ...
Selecting previously deselected package gstreamer0.10-gnomevfs.
Unpacking gstreamer0.10-gnomevfs (from .../gstreamer0.10-gnomevfs_0.10.28-1_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up m4 (1.4.13-3) ...
Setting up flex (2.5.35-9) ...

Setting up bison (1:2.4.1.dfsg-3) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode.

Setting up gstreamer0.10-gnomevfs (0.10.28-1) ...
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 0 KiB

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Ok can you give the output of:

sudo apt-get --reinstall install nano

Thanks

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Your Terminal output is showing the following issue:

Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net oneiric Release.gpg

So you are mixing Ubuntu repositories from different versions of Ubuntu. Mixing packages from different versions of Ubuntu can and will break your package manager, as you can see here.

You are using lucid (Ubuntu 12.04), so you need to remove all lines
mentioning oneiric in /etc/apt/sources.list and in
/etc/apt/sources.list.d/

Revision history for this message
Ian Sinclair (x-ian-x) said :
#3

Thanks, it gives : ian@Big-Dell:~$ sudo apt-get --reinstall nano
E: Invalid operation nano

Another suggestion is to remove lines mentioning oneiric in
/etc/apt/sources.list.d/. I thought I could use sudo gedit on this, but
I get the message that this is a folder and cannot teh chenged with
gedit, so I'm at a bit of a loss to know how to get at it (it douse
contain the unwanted lines)

Regards,

Ian

On 17/05/12 14:55, actionparsnip wrote:
> Your question #197570 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/197570
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Ok can you give the output of:
>
> sudo apt-get --reinstall install nano
>
> Thanks
>

Revision history for this message
Ian Sinclair (x-ian-x) said :
#4

Mark: deleting oneiric from /etc/apt/sources.list.d/ allowed me to re-install gThumb, but not GIMP or OpenOffice (both of which give the unresolved dependencies message. So, not a complete solution, alas.

Revision history for this message
Ian Sinclair (x-ian-x) said :
#5

Thank you, Mark, but I have taken the easy road and installed Mint-12. I
have been using Mint on the other desktop and I have been impresed, as
it gives me the equivalent of an update wihout the Unity desktop. Thank
yo, question now void.

Regard,

Ian

On 18/05/12 13:30, Mark Rijckenberg wrote:
> Your question #197570 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/197570
>
> Status: Needs information => Answered
>
> Mark Rijckenberg proposed the following answer:
> Your Terminal output is showing the following issue:
>
> Hit http://ppa.launchpad.net lucid Release.gpg
> Hit http://ppa.launchpad.net oneiric Release.gpg
>
> So you are mixing Ubuntu repositories from different versions of Ubuntu.
> Mixing packages from different versions of Ubuntu can and will break
> your package manager, as you can see here.
>
> You are using lucid (Ubuntu 12.04), so you need to remove all lines
> mentioning oneiric in /etc/apt/sources.list and in
> /etc/apt/sources.list.d/
>

Revision history for this message
Ian Sinclair (x-ian-x) said :
#6

Thank you, but I have now decided to install Mint-12.

Regards,

Ian

On 17/05/12 14:55, actionparsnip wrote:
> Your question #197570 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/197570
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Ok can you give the output of:
>
> sudo apt-get --reinstall install nano
>
> Thanks
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Please mark as solved if it is so. You got the issues by mixing repos. You also failed to run the command I gave correctly (look at the command I gave then look at the command you ran). Obviously a clean install will flatten off any issues so a clean install of Ubuntu would do exactly the same thing.

Remember, Mint is not supported here or in the Ubuntu IRC channels. It's support is completely separate to Ubuntu's

Can you help with this problem?

Provide an answer of your own, or ask Ian Sinclair for more information if necessary.

To post a message you must log in.