PDA

View Full Version : cant apt-get/dselect after update



davidHarris
04-24-2003, 12:04 AM
If I do a clean HD install then do an apt-get update and select some packages (e.g. mod-python)
It throws up the usual loads of package upgrades + some removal candidates: one of which is sysvinit which it says is vital & dont do it.
If I try to select a sysvinit replacement like rcconf there appears to be a circular dependency problem. On other occasions it tries to remove a vital package like mount-aes. There seems to be a clash in the packages requested after an update but Im not good enough with apt to figure it all out: the apt-get uses the default apt sources.list file that comes with knoppix.

I have a useable system but I cant upgrade it.

My question then is;
Is there known to be an issue here? do others have apt-get upgrade problems?

How can I reverse the package list after doing one of these apt-get updates? At the moment I have to reinstall knoppix which is a bit dumb. :(

mourner
04-24-2003, 09:54 AM
My question then is;
Is there known to be an issue here? do others have apt-get upgrade problems?

Usually I check /etc/apt/sources.list on any Debian installation before the first attempt of upgrading. If you ever have accidentally pulled up a system from stable to testing, you know what I mean.
In the case of Knoppix I comment all sources in /etc/apt/sources.list that I don't really need and end with just the "Security updates for 'stable'", "Stable", "Testing" and "Unstable" sections. As of today, apt wants to update 30 packages then and that works flawlessly.

mew
04-29-2003, 06:21 PM
If I do a clean HD install then do an apt-get update and select some packages (e.g. mod-python)
It throws up the usual loads of package upgrades + some removal candidates: one of which is sysvinit which it says is vital & dont do it.
If I try to select a sysvinit replacement like rcconf there appears to be a circular dependency problem. On other occasions it tries to remove a vital package like mount-aes. There seems to be a clash in the packages requested after an update but Im not good enough with apt to figure it all out: the apt-get uses the default apt sources.list file that comes with knoppix.

My question then is;
do others have apt-get upgrade problems?
:(

Yes, I'm having similar trouble, which I can reproduce easily:
1) unpack the compressed filesystem from KNOPPIX_3.2_2003-04-18
2) chroot; mount /proc; tweak resolv.conf; make a minimal (but sufficient?) sources.list:


deb http://security.debian.org stable/updates main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free
deb http://ftp.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://ftp.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free

3) apt-get update; apt-get dist-upgrade, which gives me the following dire warning:


The following packages will be REMOVED:
abiword mount-aes
The following NEW packages will be installed:
foomatic-db-engine foomatic-db-hpijs foomatic-filters initscripts libacl1 libdb2-dev libdb2-util libkrb53 libpam0g-dev
mount sysv-rc
The following packages have been kept back
gaim gnomemeeting tetex-extra
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
mount-aes
110 packages upgraded, 11 newly installed, 2 to remove and 3 not upgraded.
Need to get 52.1MB of archives. After unpacking 141kB will be used.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'


Is my sources.list _too_ minimal? What else should be there? Where does mount-aes come from?

TIA

davidHarris
04-29-2003, 06:49 PM
Yes, I'm having similar trouble, which I can reproduce easily:
1) unpack the compressed filesystem from KNOPPIX_3.2_2003-04-18
2) chroot; mount /proc; tweak resolv.conf; make a minimal (but sufficient?) sources.list:
[code]
Is my sources.list _too_ minimal? What else should be there? Where does mount-aes come from?

TIA
Exactly the same errors I had.
All I can tell you is how I fixed it. I edited the standard sources.list to get an unstable distribution (or install apt-spy);


# The following site was benchmarked at 38.71 kB/s
deb ftp://ftp.nl.debian.org/debian/ unstable main

# The following site was benchmarked at 37.16 kB/s
deb ftp://ftp.esat.net/pub/linux/debian/ unstable contrib

# The following site was benchmarked at 36.71 kB/s
deb ftp://ftp.icm.edu.pl/pub/Linux/debian/ unstable non-free "

then when I upgraded packages I had no problems. Of course if you want a stable distribution this isnt going to appeal to you. What the underlying cause is I have no idea - perhaps mixed stable/unstable packages in Knoppix? dunno.
Good luck :D

Stephen
04-29-2003, 07:48 PM
Is my sources.list _too_ minimal? What else should be there? Where does mount-aes come from?

TIA

Is their software that is not installed that you need otherwise apt is doing what is supposed too, updating of the packages is a good thing (less problems with installed programs).

The mount-aes came from the CD :wink: I believe it is there to mount file systems encrypted with AES.

qa1433
04-29-2003, 08:36 PM
I also have expirenced this problem. It probably is not a problem. I installed KNOPPIX_3.2_2003-04-18 on my hard drive. Smooth as slik, until I try the dist upgrade.

I guess I have been doing it wrong?
I have commented out everything except unstable.

So based on what previous msg's in this thread say, I should comment out everything except stable, unstable and testing.

Is this correct ? :?:

Thanks in advance,
paul 8)

Stephen
04-29-2003, 08:52 PM
I also have expirenced this problem. It probably is not a problem. I installed KNOPPIX_3.2_2003-04-18 on my hard drive. Smooth as slik, until I try the dist upgrade.

I guess I have been doing it wrong?
I have commented out everything except unstable.

So based on what previous msg's in this thread say, I should comment out everything except stable, unstable and testing.

Is this correct ? :?:

Thanks in advance,
paul 8)

You are running unstable you can not dist-upgrade you are already there. I guess maybe you could go to experimental if I understand the way it works correctly.

qa1433
04-29-2003, 10:15 PM
Thanks Steve,
However, I still am not 100% sure if I should commented out everything except unstable or if I should comment out everything except stable, unstable and testing. :?:

Which is correct for the source.list file for KNOPPIX_3.2_2003-04-18? :?:

Thanks,
paul 8) [/u]

Stephen
04-29-2003, 10:50 PM
Thanks Steve,
However, I still am not 100% sure if I should commented out everything except unstable or if I should comment out everything except stable, unstable and testing. :?:

Which is correct for the source.list file for KNOPPIX_3.2_2003-04-18? :?:

Thanks,
paul 8) [/u]

There is no "correct" apt will get the packages from the sources.list entries. If your current entries are causing you no problem (ie. breaking packages) then you can leave the file as is.

If you want to run unstable then leave the unstable entries, testing the same idea and after you have commented out whatever lines you want too and apt-get update make sure you apt-get -s upgrade to simulate what apt will do and check to make sure it is not going to remove any packages you need or want.

qa1433
04-29-2003, 11:01 PM
Thanks Steve,
The most important thing is the command you mentioned.
apt-get -s upgrade

The -s option is something I learned from you.

This will save my behind.

paul 8)

Stephen
04-29-2003, 11:12 PM
Thanks Steve,
The most important thing is the command you mentioned.
apt-get -s upgrade

The -s option is something I learned from you.

This will save my behind.

paul 8)

I use the -s for everything apt does saves you a whole lot of headaches if you try it out first.

qa1433
04-30-2003, 05:25 PM
Just an update with my trials and sometimes failures of apt-get.!

It works!
Comment out everything except the stable, unstable and testing trees.

This is the first time I did an upgrade without breaking my install.

Also, use the apt-get -s (whatever you want to do ) to simulate what apt-get will do and check to make sure it is not going to remove any system packages you need or other packages you want.

Pretty Kool!
Thanks to all for helping me get a better understanding of this rebust command.
paul 8)

mew
04-30-2003, 06:34 PM
David, I tried using your example source.list, but it didn't solve my problem.

What I'm trying to achieve:
Eventually, I want to remove/install/update .debs to remaster a customized CD. But before I put a lot of effort to customize the system, I simply want to ensure my package inventory is without conflicts, so I can start with a known-good baseline.

So I'm starting with a pristine unpack of the compressed filesystem, and a minimal sources.list, which I do a apt-get update; apt-get dist-upgrade. It is obviously expected that many packages will be upgraded; my concern is the conflict about mount-aes.

From the responses above, I'm going on the assuption my sources.list wasnt minimal enough, so I've reduced it to simply:



deb http://ftp.us.debian.org/debian unstable main contrib non-free


However, when I apt-get dist-upgrade, I still get:



WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
mount-aes


I find that warning unsettling and unexpected for what should be a relatively benign operation. The issue is that the dist-upgrade is trying to install mount.deb, but that conflicts with already-installed mount-aes.deb; apt is deciding that one of them must go, but it says I must type "Yes, do as I say!" Why the conflict and the dire warning?

So what is the right/best way to fix the conflict that's trying to remove mount-aes? Is my sources.list missing the repository that provides mount-aes.deb? (I did have non-us repositories, but that didn't help) Or should I just let the mount.deb replace mount-aes, and not worry about it?

TIA

mew
04-30-2003, 06:39 PM
Comment out everything except the stable, unstable and testing trees.


Could you post your actual functioning sources.list? Thanks

qa1433
05-01-2003, 05:43 AM
mew,
Please see below. Also note that the Apt Config File point to testing. So if there are major dependencies problems say from unstable it will not upgrade it. This is to protect you from trashing your system.

In my previous post I mentioned that I commented out everything except the unstable tree. This could be the main reason for me trashing your system.
paul 8)
`````````````````````````````````````````````````` `````````````````````````````````````````````````` ```````
#Apt Config File
APT::Default-Release "testing";
APT::Cache-Limit 10000000;
Apt::Get::Purge;
`````````````````````````````````````````````````` `````````````````````````````````````````````````` ```````
# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.

# Security updates for "stable"
deb http://security.debian.org stable/updates main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free

# Stable
deb http://ftp.de.debian.org/pub/debian stable main contrib non-free
deb http://ftp.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free

# Sources
deb-src http://ftp.de.debian.org/pub/debian stable main contrib non-free
deb-src http://ftp.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free

# Testing
deb http://ftp.de.debian.org/pub/debian testing main contrib non-free
deb http://ftp.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free

# Sources
deb-src http://ftp.de.debian.org/pub/debian testing main contrib non-free
deb-src http://ftp.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free

# Unstable
deb http://ftp.de.debian.org/debian unstable main contrib non-free
deb http://ftp.de.debian.org/debian-non-US unstable/non-US main contrib non-free

# Sources
deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian-non-US unstable/non-US main contrib non-free

# Experimental
# deb http://debian.uni-essen.de/debian ../project/experimental main contrib non-free
# deb-src http://debian.uni-essen.de/debian ../project/experimental main contrib non-free

# Mozilla
#deb http://non-us.debian.org/~kitame/mozilla ./
#deb-src http://non-us.debian.org/~kitame/mozilla ./

# GNOME 2.0
# deb http://www.gnome.de/debian/ ./

# KDE 3
# deb http://ktown.kde.org/~nolden/kde stable main
# deb-src http://ktown.kde.org/~nolden/kde stable main
# We get packages from testing/unstable for now

# cdbakeoven
# deb http://coyote.asoc.euitt.upm.es/mud/debian/ ./

# XFree 4.2/4.3
#deb http://people.debian.org/~branden/packages sid/i386/
#deb-src http://people.debian.org/~branden/packages sid/source/
#deb http://www.penguinppc.org/~daniels/sid/i386 ./
#deb-src http://www.penguinppc.org/~daniels/sid/source ./

# Java
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian woody main non-free
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian woody main non-free
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free
# deb http://people.debian.org/~sgybas/jdk13

# LyX & others (now in debian/unstable)
# deb ftp://ntama.uni-mainz.de/pub/debian unofficial/
# deb-src ftp://ntama.uni-mainz.de/pub/debian unofficial/

# Evolution
#deb ftp://ftp.ximian.com/pub/debian stable main
#deb-src ftp://ftp.ximian.com/pub/debian stable main

# Blades Repository (pppoeconf & co)
#deb http://people.debian.org/~blade/testing ./
#deb-src http://people.debian.org/~blade/testing ./

# deb cdrom:[Debian GNU/Linux 2.2 r3 _Potato_ - Official i386 Binary-1 (20010427)]/ unstable contrib main non-US/contrib non-US/main