package manager has broken packages and dependencies, cannot fix it. followed instructions but did not work

Asked by Justin Hnatowich

imagine@imagine-laptop:~$ sudo fuser -vvv /var/lib/dpkg/lock
imagine@imagine-laptop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
imagine@imagine-laptop:~$ uname -a
Linux imagine-laptop 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux
imagine@imagine-laptop:~$ sudo rm /var/lib/apt/lists/lock
imagine@imagine-laptop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
imagine@imagine-laptop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
imagine@imagine-laptop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
imagine@imagine-laptop:~$ sudo rm -rf /var/lib/dpkg/updates/*
imagine@imagine-laptop:~$ sudo rm -rf /var/lib/apt/lists
imagine@imagine-laptop:~$ sudo rm /var/cache/apt/*.bin
imagine@imagine-laptop:~$ sudo mkdir /var/lib/apt/lists
imagine@imagine-laptop:~$ sudo mkdir /var/lib/apt/lists/partial
imagine@imagine-laptop:~$ LANG=C;sudo apt-get clean
imagine@imagine-laptop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
imagine@imagine-laptop:~$ LANG=C;sudo apt-get --purge autoremove
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:
 fglrx-amdcccle : Depends: fglrx but it is not installable
E: Unmet dependencies. Try using -f.
imagine@imagine-laptop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://archive.ubuntu.com maverick Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Get:2 http://archive.ubuntu.com maverick-updates Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Get:3 http://archive.ubuntu.com maverick-security Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Get:4 http://archive.ubuntu.com maverick Release [39.8kB]
Get:5 http://archive.ubuntu.com maverick-updates Release [31.4kB]
Get:6 http://archive.ubuntu.com maverick-security Release [31.4kB]
Get:7 http://archive.ubuntu.com maverick/main Sources [829kB]
Get:8 http://archive.ubuntu.com maverick/restricted Sources [4370B]
Get:9 http://archive.ubuntu.com maverick/universe Sources [4179kB]
Get:10 http://archive.ubuntu.com maverick/multiverse Sources [151kB]
Get:11 http://archive.ubuntu.com maverick/main amd64 Packages [1491kB]
Get:12 http://archive.ubuntu.com maverick/restricted amd64 Packages [6002B]
Get:13 http://archive.ubuntu.com maverick/universe amd64 Packages [5771kB]
Get:14 http://archive.ubuntu.com maverick/multiverse amd64 Packages [180kB]
Get:15 http://archive.ubuntu.com maverick-updates/main Sources [93.5kB]
Get:16 http://archive.ubuntu.com maverick-updates/restricted Sources [778B]
Get:17 http://archive.ubuntu.com maverick-updates/universe Sources [38.8kB]
Get:18 http://archive.ubuntu.com maverick-updates/multiverse Sources [1496B]
Get:19 http://archive.ubuntu.com maverick-updates/main amd64 Packages [255kB]
Get:20 http://archive.ubuntu.com maverick-updates/restricted amd64 Packages [1802B]
Get:21 http://archive.ubuntu.com maverick-updates/universe amd64 Packages [113kB]
Get:22 http://archive.ubuntu.com maverick-updates/multiverse amd64 Packages [2698B]
Get:23 http://archive.ubuntu.com maverick-security/main Sources [33.6kB]
Get:24 http://archive.ubuntu.com maverick-security/restricted Sources [14B]
Get:25 http://archive.ubuntu.com maverick-security/universe Sources [13.4kB]
Get:26 http://archive.ubuntu.com maverick-security/multiverse Sources [649B]
Get:27 http://archive.ubuntu.com maverick-security/main amd64 Packages [113kB]
Get:28 http://archive.ubuntu.com maverick-security/restricted amd64 Packages [14B]
Get:29 http://archive.ubuntu.com maverick-security/universe amd64 Packages [53.4kB]
Get:30 http://archive.ubuntu.com maverick-security/multiverse amd64 Packages [1506B]
Fetched 13.4MB in 22s (592kB/s)
Reading package lists... Done
imagine@imagine-laptop:~$ sudo dpkg --clear-avail
imagine@imagine-laptop:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of fglrx-amdcccle:
 fglrx-amdcccle depends on fglrx; however:
  Package fglrx is not installed.
dpkg: error processing fglrx-amdcccle (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 fglrx-amdcccle
imagine@imagine-laptop:~$ LANG=C;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:
  fglrx
The following NEW packages will be installed:
  fglrx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 31.7MB of archives.
After this operation, 108MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ maverick/restricted fglrx amd64 2:8.780-0ubuntu2 [31.7MB]
Fetched 31.7MB in 55s (569kB/s)
(Reading database ...
dpkg: warning: files list file for package `fglrx-amdcccle' missing, assuming package has no files currently installed.
(Reading database ... 191398 files and directories currently installed.)
Unpacking fglrx (from .../fglrx_2%3a8.780-0ubuntu2_amd64.deb) ...
/usr/share/ati/fglrx-uninstall.sh: 32: cannot create /etc/ati/fglrx-uninstall.log: Directory nonexistent

[Warning] Uninstall : inst_path_default or inst_path_override
 does not exist in /etc/ati. This suggests that the ATI driver
 is not installed, the ATI driver is only partially installed,
 or the current ATI driver installed is an older version than the
 one this script was designed for. Both files listed above are
 required for determining where installed files are located.
 To force uninstallation of the driver by guessing where the
 uninstallation files are located, set the force option
 re-run /usr/share/ati/fglrx-uninstall.sh (this is not recommended).

dpkg: error processing /var/cache/apt/archives/fglrx_2%3a8.780-0ubuntu2_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/fglrx_2%3a8.780-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
imagine@imagine-laptop:~$ LANG=C;sudo apt-get --fix-missing install
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:
 fglrx-amdcccle : Depends: fglrx but it is not installed
E: Unmet dependencies. Try using -f.
imagine@imagine-laptop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.ubuntu.com maverick Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Hit http://archive.ubuntu.com maverick-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Hit http://archive.ubuntu.com maverick-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Hit http://archive.ubuntu.com maverick Release
Hit http://archive.ubuntu.com maverick-updates Release
Hit http://archive.ubuntu.com maverick-security Release
Hit http://archive.ubuntu.com maverick/main Sources
Hit http://archive.ubuntu.com maverick/restricted Sources
Hit http://archive.ubuntu.com maverick/universe Sources
Hit http://archive.ubuntu.com maverick/multiverse Sources
Hit http://archive.ubuntu.com maverick/main amd64 Packages
Hit http://archive.ubuntu.com maverick/restricted amd64 Packages
Hit http://archive.ubuntu.com maverick/universe amd64 Packages
Hit http://archive.ubuntu.com maverick/multiverse amd64 Packages
Hit http://archive.ubuntu.com maverick-updates/main Sources
Hit http://archive.ubuntu.com maverick-updates/restricted Sources
Hit http://archive.ubuntu.com maverick-updates/universe Sources
Hit http://archive.ubuntu.com maverick-updates/multiverse Sources
Hit http://archive.ubuntu.com maverick-updates/main amd64 Packages
Hit http://archive.ubuntu.com maverick-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com maverick-updates/universe amd64 Packages
Hit http://archive.ubuntu.com maverick-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com maverick-security/main Sources
Hit http://archive.ubuntu.com maverick-security/restricted Sources
Hit http://archive.ubuntu.com maverick-security/universe Sources
Hit http://archive.ubuntu.com maverick-security/multiverse Sources
Hit http://archive.ubuntu.com maverick-security/main amd64 Packages
Hit http://archive.ubuntu.com maverick-security/restricted amd64 Packages
Hit http://archive.ubuntu.com maverick-security/universe amd64 Packages
Hit http://archive.ubuntu.com maverick-security/multiverse amd64 Packages
Reading package lists... Done
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:
 fglrx-amdcccle : Depends: fglrx but it is not installed
E: Unmet dependencies. Try using -f.
imagine@imagine-laptop:~$

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

sudo apt-get --purge remove fglrx-amdcccle

Shoul do it

Can you help with this problem?

Provide an answer of your own, or ask Justin Hnatowich for more information if necessary.

To post a message you must log in.