PDA

View Full Version : apt-get/dpkg broken, will not install programs, dead-locked



lavaman094
09-11-2003, 01:02 AM
I've had a copy of Knoppix since I found it back in January. I later burned a newer copy of the software in March, but I don't know from which month the CD is. In any case, my OS (ME) crapped out, so I got XP, which then also was a pain in the butt. My hard drive has been failing for months, and now it's gotten worse. It now says "failure may be imminent" on bootup. I installed Knoppix as a last resort. Not that I don't like Linux

Now I've done a hard drive install using "knx-hdinstall". I tried using "reiserfs" as the filesystem, but it did not complete the file copy. I had to restart and boot up knoppix again and then choose a different fs (in an attempt to get it to work). I choose ext3. No luck. I then choose ext2, but no luck eiher. Finally I choose reiserFS again and it worked. During the file copy it said a few "input/output errors" from "cp: such and such GNUfoobar/README input/output error". This was bad and strange since the CD is not even a year old and has no major scratches.

I'm up and running now, but not exactly running. I've done apt-get update and apt-get upgrade, with a bunch of difficulty. It had a problem with a mergelist and I ended up somehow fixing that by deleting the file that was the mergelist. Now it works.

However, apt-get will not install stuff. I thought apt-get upgrade would install the latest mozilla, but it didn't. Must be something about "holds" or something.

Here are the outputs I get (please dont' bother me for using root):

root@Harkonnen:~# apt-get install mozilla
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
mozilla: Depends: mozilla-browser (= 2:1.4-4)
Depends: mozilla-mailnews (= 2:1.4-4) but it is not going to be installed
Depends: mozilla-psm (= 2:1.4-4) but it is not going to be installed
Depends: mozilla-xft (= 2:1.4-4) but it is not going to be installed
E: Sorry, broken packages
root@Harkonnen:~#

Also, running "apt-get install -t mozilla" doesn't give any sucess either.


Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
kde-i18n-de
0 packages upgraded, 0 newly installed, 1 to remove and 788 not upgraded.
2 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 19.8MB will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 112084 files and directories currently installed.)
Removing kde-i18n-de ...
dpkg: error processing kde-i18n-de (--remove):
failed to rmdir/unlink `/usr/share/doc/kde/HTML/de/kenolaba/common.dpkg-tmp': Permission denied
Errors were encountered while processing:
kde-i18n-de
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Harkonnen:~#

Help! apt-get wont' work!

fingers99
09-11-2003, 01:09 AM
Have you tried apt-get update?

My guess, nothing more, is that you should consider pointing your sources list at unstable. In a sense, you're asking for trouble if you use a mixed sources list on a fairly old version of Knoppix....... especially with something as freaky and complex as Mozilla.

As to the "imminent failure" message, take it seriously. False warnings are relatively uncommon. It looks like it will die. Soon. Buy another. Now.

lavaman094
09-11-2003, 01:13 AM
Have you tried apt-get update?

My guess, nothing more, is that you should consider pointing your sources list at unstable. In a sense, you're asking for trouble if you use a mixed sources list on a fairly old version of Knoppix....... especially with something as freaky and complex as Mozilla.

As to the "imminent failure" message, take it seriously. False warnings are relatively uncommon. It looks like it will die. Soon. Buy another. Now.

Yes, I have done apt-get update. Some of the lines say "testing" and some say "unstable". Does doing apt-get update update my sources list?

Apt-get update runs and it's last lines are:
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

How do I point my sources list at unstable?

mangancha
09-11-2003, 04:08 AM
apt-get install -t unstable mozilla? :shock:

lavaman094
09-11-2003, 06:09 AM
apt-get install -t unstable mozilla? :shock:

I thought it would be that simple too. No, that doesn't work either:

root@Harkonnen:~# apt-get install -t unstable mozilla
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
gcc-3.3-base libc6 libc6-dev libgcc1 libglib2.0-0 libglib2.0-data
libglib2.0-dev libnspr4 libnss3 libstdc++5 libxrender1 locales
mozilla-browser mozilla-locale-de-at mozilla-mailnews mozilla-psm
mozilla-xft
The following packages will be REMOVED:
kde-i18n-de mozilla-xmlterm
The following NEW packages will be installed:
gcc-3.3-base libstdc++5 libxrender1 mozilla-xft
14 packages upgraded, 4 newly installed, 2 to remove and 777 not upgraded.
2 packages not fully installed or removed.
Need to get 25.8MB of archives. After unpacking 8478kB will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://ftp2.de.debian.org unstable/main libc6-dev 2.3.2-6 [2632kB]
Get:2 http://ftp2.de.debian.org unstable/main locales 2.3.2-6 [3799kB]
Get:3 http://ftp2.de.debian.org unstable/main libc6 2.3.2-6 [3717kB]
Get:4 http://ftp2.de.debian.org unstable/main gcc-3.3-base 1:3.3.2-0pre3 [141kB]
Get:5 http://ftp2.de.debian.org unstable/main libgcc1 1:3.3.2-0pre3 [71.0kB]
Get:6 http://ftp2.de.debian.org unstable/main libstdc++5 1:3.3.2-0pre3 [282kB]
Get:7 http://ftp2.de.debian.org unstable/main libglib2.0-dev 2.2.3-1 [393kB]
Get:8 http://ftp2.de.debian.org unstable/main libglib2.0-data 2.2.3-1 [126kB]
Get:9 http://ftp2.de.debian.org unstable/main libglib2.0-0 2.2.3-1 [305kB]
Get:10 http://ftp2.de.debian.org unstable/main mozilla 2:1.4-4 [1026B]
Get:11 http://ftp2.de.debian.org unstable/main mozilla-mailnews 2:1.4-4 [1946kB]
Get:12 http://ftp2.de.debian.org unstable/main mozilla-psm 2:1.4-4 [187kB]
Get:13 http://ftp2.de.debian.org unstable/main libnss3 2:1.4-4 [615kB]
Get:14 http://ftp2.de.debian.org testing/main libxrender1 0.8.2-1 [20.3kB]
Get:15 http://ftp2.de.debian.org unstable/main mozilla-xft 2:1.4-4 [185kB]
Get:16 http://ftp2.de.debian.org unstable/main mozilla-locale-de-at 1.4-1 [681kB ]
Get:17 http://ftp2.de.debian.org unstable/main mozilla-browser 2:1.4-4 [10.6MB]
Get:18 http://ftp2.de.debian.org unstable/main libnspr4 2:1.4-4 [124kB]
Fetched 25.8MB in 3m7s (138kB/s)
Preconfiguring packages ...
(Reading database ... 112084 files and directories currently installed.)
Removing kde-i18n-de ...
dpkg: error processing kde-i18n-de (--remove):
failed to rmdir/unlink `/usr/share/doc/kde/HTML/de/kenolaba/common.dpkg-tmp': Permission denied
Errors were encountered while processing:
kde-i18n-de
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Harkonnen:~#

rickenbacherus
09-11-2003, 02:33 PM
Try:

apt-get -f install

At any rate you're going to need to get the kde-i18n-de problem fixed before apt is going to work. I would suggest you edit /etc/locale.gen and remove or comment out those that you don't need. Then install localepurge. If you can't get apt to download localepurge then you could download it yourself and install it with midnight commander for example.

Another something to try might be dpkg -P locales

Superstoned
09-11-2003, 04:00 PM
maybe you can download the latest knoppix, run knoppix-installer to install it and bla bla bla... ???

lavaman094
09-11-2003, 04:38 PM
Okay, I edited /etc/locale.gen and commented out the ones i don't need. It said in the file I would need to run locale-gen, which I did, which surprisingly completed without error. Then I tried apt-get to get localepurge and it worked. Of course on the yes or no point, it said kde-i18n-de would be removed. Localepurge was supposed to clean off the locales I don't need. I went through with the program and then it went back to the shell and dpkg spit out the kde-i18n-de error again.

root@Harkonnen:~# apt-get install localepurge
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
kde-i18n-de
The following NEW packages will be installed:
localepurge
0 packages upgraded, 1 newly installed, 1 to remove and 605 not upgraded.
2 packages not fully installed or removed.
Need to get 24.1kB of archives. After unpacking 19.7MB will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://ftp2.de.debian.org testing/main localepurge 0.0.58 [24.1kB]
Fetched 24.1kB in 1s (19.6kB/s)
Preconfiguring packages ...
(Reading database ... 112084 files and directories currently installed.)
Removing kde-i18n-de ...
dpkg: error processing kde-i18n-de (--remove):
failed to rmdir/unlink `/usr/share/doc/kde/HTML/de/kenolaba/common.dpkg-tmp': Permission denied
Errors were encountered while processing:
kde-i18n-de
E: Sub-process /usr/bin/dpkg returned an error code (1)

Additionally, I ran:

root@Harkonnen:~# dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
locales GNU C Library: National Language (locale) data [support]

The following packages are only half installed, due to problems during
installation. The installation can probably be completed by retrying it;
the packages can be removed using dselect or dpkg --remove:
kde-i18n-de German i18n files for KDE

Now if I do an ls in /usr/share/doc/kde/HTML/de/, kenolaba shows up, but strangely (as root no less) I cannot cd nor rmdir the kenolaba folder:
bash: cd: kenolaba: Permission denied

Is there some way I can exclude kde-i18n-de from apt-get? Issue a command or edit a file so that it doesn't care or mess with kde-i18n-de anymore?


Superstoned, I don't think my hard drive can take another install.

Superstoned
09-12-2003, 01:08 AM
Superstoned, I don't think my hard drive can take another install.

well, I can understand that - although I guess something is screwed up, and it *might* be easier to just re-install...

You can backup your home-dir (or even put it on a different partition) to save your pref's etc...

lavaman094
09-12-2003, 01:32 AM
Could this problem be caused by a bad data copy from the CD when I ran the knx-hdinstall script?

Would this go away if I reinstalled from a fresh and new 9/5/03 copy of Knoppix? does this sort of problem happen under normal circumstances?

Superstoned
09-12-2003, 01:40 AM
It COULD be caused by bad data on the cd. Did you check the md5checksum on the iso after downloading? It happened me too often that I had a bad image downloaded (and sometimes I just found out after burning and (trying to) install).
Maybe you can use bittorrent, it checks its data. a downloaded bittorrent file is always ok, thats why I use it for big files... (on the anouncement-forumpage you can find a bittorrent-link)

rickenbacherus
09-12-2003, 01:49 AM
Try removing common.dpkg-tmp not kenolaba.

lavaman094
09-12-2003, 02:46 AM
Try removing common.dpkg-tmp not kenolaba.

I can't even touch or enter the kenolaba directory. Since the common--- folder is inside kenolaba, there's nothing I can do about it it seems.

The ISO passed the MD5 check before i burned it. I'm not asking that, I'm asking if there are any flaws or reasons why the file copy would corrupt or produce a bad copy. As in no error checking or something like that. The CD is from January, and it's not scratched up. It of course has small scratches, but aren't CDs supposed to last at least a year?

Superstoned
09-12-2003, 12:43 PM
if the md5 was ok, I guess there is just a very small chance the cd whould be corrupt. after a year, a cd should be readable. but it is possible you where just unlucky...

rickenbacherus
09-13-2003, 12:19 AM
Well....IIRC I have never not been able to delete something before. I would do it like so:

sudo rm -rf /name/of/directory