apt-get upgrade failed
Hi all,
Ubuntu 12.04 desktop $ sudo apt-get update Code:
..... Code:
...... $ sudo apt-get clean $ sudo apt-get autoremove Problem still remains. Please help. Thanks Rgds satimis |
Files in /etc/apt/sources.list.d must have names ending in .list.
From the SOURCES.LIST(5) man page: Quote:
EDIT: that doesn't address the serious error "reading files list for package 'libdca0': Is a directory". |
You have two file in the directory /etc/apt/sources.list.d, named gcl and google.OLDlist. Those files specify additional package repositories for use by APT, but APT does only use files with the extension .list and will ignore the rest. Since those files don't have the .list APT ignores them, but tells you about it. You may want to fix the extensions (just rename the files, so that they have the proper extension) or delete them, depending on if you want to actually use the repositories that are specified in those files.
EDIT: Too slow. |
Hi all,
Thanks for your advice. $ ls -la /etc/apt/sources.list.d/ Code:
total 20 satimis |
Just have a look into them, possibly the content gives you a clue what they are for.
|
Quote:
$ cat /etc/apt/sources.list.d/gcl Code:
### THIS FILE IS AUTOMATICALLY CONFIGURED ### Code:
deb http://dl.google.com/linux/chrome/deb/ stable main Code:
deb http://ppa.launchpad.net/the-ninja-circus/nudgeremind/ubuntu precise main sudo apt-get update & sudo apt-get upgrade I have to run; sudo aptitude update & sudo aptitude upgrade instead. But this time the latter didn't work. satimis |
Quote:
Copy all of those entries in your /etc/sources.list.d directory to someplace else, any place else, in the unlikely case they are of any use, and then remove them from the /etc/sources.list.d directory. Or you could comment them out and leave them in place. In the Debian package management system the sources,list is the heart of your package management because it is where the packages come from. I realize it is cool to through crap in there because some idiot with a blog recommends it. To bad they know more about writing blogs than package management. If after a mere 18 months you don't know what this stuff is for it is probably crap. Virtualbox is available in your repo along with all needed depends with no extra special l33t repos added to screw up your entire package management system. Try using, as recommended, even by Ubuntu, packages available ih the official repos. If you then need something else to do what you need to do research; A> why you need it B> exactly what you need C> the best, most secure, best maintained source of other packages D> double check that the source of the package is really optimized to work with your version of Ubuntu This is not information you are going to get from the average blog written by Ubuntu fanboys that run Win JerryLewis Pro as their production OS. |
Comment each of these entries out by putting a # in from of the word deb e.g.
Code:
# deb http://dl.google.com/linux/chrome/deb/ stable main |
Quote:
$ sudo mv /etc/apt/sources.list.d/gcl /home/satimis/ $ sudo mv /etc/apt/sources.list.d/google.OLDlist /etc/apt/sources.list.d/google-chrome.list $ sudo apt-get update no complaint $ sudo apt-get upgrade Code:
........ Also tried deleting /etc/apt/sources.list.d/google-chrome.list Problem still remained. I haven't read /etc/apt/sources.list sometimes, no google entries on it. cat /etc/apt/sources.list Code:
deb http://hk.archive.ubuntu.com/ubuntu/ precise main restricted |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Hi all,
Performed following steps $ sudo find / -name libdca0 Code:
/usr/share/doc/libdca0 Code:
total 96 Code:
Desired=Unknown/Install/Remove/Purge/Hold Code:
total 312 and rename the directory as libdca0.OLD $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.OLD $ sudo gedit /etc/apt/sources.list comment out all VirtualBox repositories leaving following 2 behind Code:
deb http://download.virtualbox.org/virtualbox/debian precise contrib No complaint $ sudo apt-get upgrade Code:
Reading package lists... Done Rgds satimis |
Quote:
Quote:
Quote:
|
Quote:
Code:
#deb http://download.virtualbox.org/virtualbox/debian wheezy contrib $ sudo apt-get update $ sudo apt-get upgrade Code:
..... Edit: I have VMs running Ubuntu 12.04 on this PC. Just checked on one VM $ ls -la /var/lib/dpkg/info/libdca0.list Code:
-rw-r--r-- 1 root root 348 Feb 23 2013 /var/lib/dpkg/info/libdca0.list Performed; $ sudo mkdir /var/lib/dpkg/info/libdca0.list $ sudo apt-get upgrade Code:
Reading package lists... Done VM $ lsb_release -a Code:
No LSB modules are available. Code:
Linux localhost 3.5.0-43-generic #66~precise1-Ubuntu SMP Thu Oct 24 14:52:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux satimis |
Try
Code:
sudo apt-get install --reinstall libdca0 |
Quote:
Code:
Reading package lists... Done $ sudo find / -name klibc-utils Code:
/usr/share/doc/klibc-utils Code:
lrwxrwxrwx 1 root root 8 Feb 22 2013 /usr/share/doc/klibc-utils -> libklibc Code:
-rw-rw-r-- 1 root root 65 Nov 20 2011 /usr/share/lintian/overrides/klibc-utils Code:
klibc-utils: statically-linked-binary satimis |
Solved
Hi folks,
Finally I fixed the problem as follows:- $ sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.OLD20131115 $ ls -la /var/lib/dpkg/ Code:
total 7808 $ sudo gedit /var/lib/dpkg/status delete following lines; Code:
Package: klibc-utils $ sudo apt-get -f install Code:
Reading package lists... Done 2) $ sudo gedit /var/lib/dpkg/status Removed following lines; Code:
Package: libdirac-encoder0 $ sudo apt-get -f install Code:
Reading package lists... Done $ sudo gedit /var/lib/dpkg/status Again removed following lines; Code:
Package: krb5-locales $ sudo apt-get -f install This time no complaint $ sudo apt-get install klibc-utils libdirac-encoder0 krb5-locales No complaint Now I can run; $ sudo apt-get update && sudo apt-get upgrade without problem It tooks a long way to fix the problem. Otherwise I have to reinstall Ubuntu 12.04 (I found the solution on searching; dpkg: unrecoverable fatal error, aborting: http://ubuntuforums.org/archive/inde...t-1232143.html ) I have no idea how can I render into this problem. This is the Host of VirtualBox. I only run Firefox and Google Chrome on it. All works are done on VMs. Anyway lot of thanks for your support. A further question in case of failure, in the worst case, can I copy; /var/lib/dpkg/* from a Ubuntu 12.04 VM to the Host? Rgds satimis |
All times are GMT -5. The time now is 01:12 AM. |