PDA

View Full Version : apt-get wants to Downgrade some packages



DimGR
08-01-2004, 04:52 PM
The following packages will be DOWNGRADED:
cvs dhcp3-common dhcp3-server dietlibc-dev falconseye falconseye-data fam
glibc-doc gs-common gzip iproute ircii lbxproxy lftp lha libdps1 liblwres1
libmailtools-perl libmysqlclient10 libnetpbm9 libxaw7 libxaw7-dev libxml1
lynx man-db mikmod mime-support mpack mpg321 mysql-client mysql-common
mysql-server netris nfs-common nfs-kernel-server pcmcia-cs proxymngr rsync
samba-doc screen thttpd twm unzip wget xboing xdm xfonts-100dpi
xfonts-100dpi-transcoded xfonts-75dpi xfonts-75dpi-transcoded xfonts-base
xfonts-base-transcoded xfonts-scalable xfs xfwp xgalaga xnest xpdf
xpdf-utils xserver-common xserver-xfree86 xterm xutils xvfb



is there a way to stop it from asking me if i want to downgrade or not?

Markus
08-01-2004, 05:14 PM
Care to tell us what you did to make it want to downgrade?
Also what do you have in /etc/apt/apt.conf and sources.list?

DimGR
08-01-2004, 05:32 PM
Care to tell us what you did to make it want to downgrade?
Also what do you have in /etc/apt/apt.conf and sources.list?

i did not do anything .... I installed a few video-audio plugins from synaptic and next time i did an update and then upgrade asked me to downgrade all these or not.

this is my sources list. It is the default.




APT::Default-Release "testing";
APT::Cache-Limit 10000000;
Apt::Get::Purge;





deb file:/var/cache/apt-build/repository apt-build main
# /etc/apt/sources.list for Knoppix
# If you want to do a "full upgrade", you should first
# upgrade the Packages from Debian/unstable (KDE & Co.)
# before doing a (dist-)upgrade for Debian/testing.
#
# 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

# Stable 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

# Testing 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

# Unstable 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://ftp.de.debian.org/debian ../project/experimental main contrib non-free

# Experimental Sources
deb-src http://ftp.de.debian.org/debian ../project/experimental main contrib non-free

# 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

# More wireless stuff
deb http://debian.isg.ee.ethz.ch/public woody madwifi
deb-src http://debian.isg.ee.ethz.ch/public woody madwifi
deb http://debian.isg.ee.ethz.ch/public woody airo-mpi
deb-src http://debian.isg.ee.ethz.ch/public woody airo-mpi
# deb ftp://ftp.tcweb.org/pub/debian unstable main
# deb-src ftp://ftp.tcweb.org/pub/debian unstable 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
deb http://download.videolan.org/pub/videolan/debian sid main
deb-src http://download.videolan.org/pub/videolan/debian sid main

Markus
08-01-2004, 05:44 PM
Knoppix is a mix of testing, unstable and even stable I think.
If you remember which packages you got with synaptic you could check from which tree they were with: apt-cache policy packagename
Looks to me like you got some from testing and now it wants to downgrade the ones depending on them also to testing.
What happens with: apt-get -s -t unstable install packagename_you_installed and_another_one

DimGR
08-01-2004, 06:01 PM
Knoppix is a mix of testing, unstable and even stable I think.
If you remember which packages you got with synaptic you could check from which tree they were with: apt-cache policy packagename
Looks to me like you got some from testing and now it wants to downgrade the ones depending on them also to testing.
What happens with: apt-get -s -t unstable install packagename_you_installed and_another_one



apt-get -s -t unstable install avifile-divx-plugin
Reading Package Lists... Done
Building Dependency Tree... Done
avifile-divx-plugin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 568 not upgraded.




apt-cache policy avifile-divx-plugin
avifile-divx-plugin:
Installed: 1:0.7.38.20030710-1.1
Candidate: 1:0.7.38.20030710-1.1
Version Table:
*** 1:0.7.38.20030710-1.1 0
99 http://ftp.de.debian.org unstable/contrib Packages
100 /var/lib/dpkg/status




this plugin was 1 of the 10 i got yesterday




what is going to happen if i hit Y to downgrade and then try to upgrade again? will it let me upgrade them or not

Markus
08-01-2004, 06:13 PM
APT::Default-Release "testing";
APT::Cache-Limit 10000000;
Apt::Get::Purge;

I'd say that the testing there is why your getting testing packages unless you specify unstable.
Did you tell synaptic to get from unstable?
I don't suppose downgrading the packages will do much harm, but then again, I have never downgraded as I run a pure unstable so I can't tell for sure.

DimGR
08-01-2004, 06:21 PM
APT::Default-Release "testing";
APT::Cache-Limit 10000000;
Apt::Get::Purge;

I'd say that the testing there is why your getting testing packages unless you specify unstable.
Did you tell synaptic to get from unstable?
I don't suppose downgrading the packages will do much harm, but then again, I have never downgraded as I run a pure unstable so I can't tell for sure.

so if i just replace the word testing with unstable everything will be fine ?

i did not specify from where to download the plugins ...

Markus
08-01-2004, 06:35 PM
Don't know about fine but at least you'll be getting packages from one branch only which will make life a lot easier.
What will happen is that it's going to upgrade the whole system to unstable so you'll probably want to check commands like
dpkg -i --force-overwrite /var/cache/apt/archives/package.......deb
A shorter way to do this would be a dist-upgrade but from what I've read, others have had lots of problems with that command.

FWIW you might want to repeat the -t unstable install with the other packages as well or at least check them with policy to find out whats downgrading your system.

DimGR
08-01-2004, 06:38 PM
Don't know about fine but at least you'll be getting packages from one branch only which will make life a lot easier.
What will happen is that it's going to upgrade the whole system to unstable so you'll probably want to check commands like
dpkg -i --force-overwrite /var/cache/apt/archives/package.......deb
A shorter way to do this would be a dist-upgrade but from what I've read, others have had lots of problems with that command.

FWIW you might want to repeat the -t unstable install with the other packages as well or at least check them with policy to find out whats downgrading your system.


but i had installed and i have been with Sid unstable. HOw did it become "testing" ?

Markus
08-01-2004, 06:51 PM
Hmm, what did you install?
Knoppix is not pure sid. It's as said, a mix of sid, sarge and I think even woody.

DimGR
08-01-2004, 09:04 PM
Hmm, what did you install?
Knoppix is not pure sid. It's as said, a mix of sid, sarge and I think even woody.

knoppix , yes

Markus
08-01-2004, 09:47 PM
Well that's why you have packages from different branches then.
Upgrading to unstable might be a PITA or hopefully not, but I think it's still worth it because installing new packages will be easier after you've managed to upgrade once. A lot of people never upgrade their install though. A matter of taste I suppose.
If you want a distro that's pure sid try kanotix which is what I'm running.

DimGR
08-01-2004, 09:59 PM
Well that's why you have packages from different branches then.
Upgrading to unstable might be a PITA or hopefully not, but I think it's still worth it because installing new packages will be easier after you've managed to upgrade once. A lot of people never upgrade their install though. A matter of taste I suppose.
If you want a distro that's pure sid try kanotix which is what I'm running.


I just downgraded right now and ill try to upgrade again. If it fails etc i will give kanotix a try:)

thanks

DimGR
08-01-2004, 10:41 PM
i know think apt-get is all messed p





apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Failed
The following packages have unmet dependencies:
cloop-utils: Depends: libc6 (>= 2.3.2.ds1-4) but 2.2.5-11.5 is to be installed
Depends: libgcc1 (>= 1:3.3.3-1) but it is not going to be installed
Depends: libstdc++5 (>= 1:3.3.3-1) but it is not going to be installed
Depends: zlib1g (>= 1:1.2.1) but it is not going to be installed
libqt3-mt-dev: Depends: xlibs-static-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libxext-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libxrandr-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libsm-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libxmu-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libice-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libx11-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libxt-dev (>= 4.3.0.dfsg.1-4) but it is not going to be installed
Depends: libmng-dev (>= 1.0.3) but it is not going to be installed
Depends: libpng12-0-dev
Depends: libjpeg62-dev but it is not going to be installed
Depends: zlib1g-dev but it is not going to be installed
Depends: libfreetype6-dev but it is not going to be installed
Depends: libqt3c102-mt (= 3:3.2.3-4) but it is not going to be installed
Depends: qt3-dev-tools (= 3:3.2.3-4) but it is not going to be installed
Depends: xlibmesa-gl-dev but it is not going to be installed or
libgl-dev
Depends: xlibmesa-glu-dev but it is not going to be installed or
libglu1-mesa-dev but it is not going to be installed or
libglu-dev
Depends: libxrender-dev but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Depends: libaudio-dev but it is not going to be installed
libxft2-dev: Depends: libxft2 (= 2.1.1-2) but it is not going to be installed
Depends: libfontconfig1-dev but it is not going to be installed
Depends: libfreetype6-dev but it is not going to be installed
Depends: xlibs-dev but it is not going to be installed
Depends: zlib1g-dev but it is not going to be installed or
libz-dev
Depends: pkg-config but it is not going to be installed
mknbi: Depends: perl but it is not going to be installed
pppconfig: Depends: ppp (>= 2.3.7) but it is not going to be installed
Depends: whiptail but it is not going to be installed or
dialog but it is not going to be installed
xlibmesa-dri: Depends: xlibmesa-gl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.



can these be fixed or not?

Superstoned
08-01-2004, 10:46 PM
Don't know about fine but at least you'll be getting packages from one branch only which will make life a lot easier.
What will happen is that it's going to upgrade the whole system to unstable so you'll probably want to check commands like
dpkg -i --force-overwrite /var/cache/apt/archives/package.......deb
A shorter way to do this would be a dist-upgrade but from what I've read, others have had lots of problems with that command.

FWIW you might want to repeat the -t unstable install with the other packages as well or at least check them with policy to find out whats downgrading your system.

but i had installed and i have been with Sid unstable. HOw did it become "testing" ?

I think knoppix is standard set to testing, although klaus has added some unstable packages.

dist-upgrade doesnt give *me* any problems, so you might change testing to unstable, then do an apt-get dist-upgrade.

but mixing branches is no problem, I have stable, testing and unstable packages. only unstable packages might give problems now and then, but unstable has been quite stable the last months.

Markus
08-01-2004, 11:13 PM
What do you have in apt.conf? Testing or unstable?
It still tries to get testing, so what command did you issue?
apt-get dist-upgrade unstable?

DimGR
08-01-2004, 11:27 PM
What do you have in apt.conf? Testing or unstable?
It still tries to get testing, so what command did you issue?
apt-get dist-upgrade unstable?



in apt.conf i changed testing to unstable
The distro-upgrade command gives me the same dependacies errors.
apt-get upgrade though gives me all these :




apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
abiword-common abiword-gnome abiword-help abiword-plugins
abiword-plugins-gnome apache-utils bitcollider-plugins blt capplets
capplets-data cloop-utils dcgui-qt dia-common dia-gnome dia-libs dpkg
dsniff epiphany-browser frozen-bubble frozen-bubble-data gdk-imlib1 gdm
gimp gimp-data gimp-helpbrowser gksu gniall gnome gnome-applets
gnome-applets-data gnome-control-center gnome-core
gnome-desktop-environment gnome-games gnome-games-data gnome-media
gnome-office gnome-session gnome-system-monitor gnomemeeting gnumeric
gnumeric-common gq grip gs-esp gtkam gucharmap imlib1 imlib11 jpilot-mail
kdeedu kdelibs kdelibs-bin kdelibs4 klettres libaiksaurusgtk0c102
libbonobo2-0 libbonobo2-common libcupsimage2 libcupsys2-gnutls10
libgcj4-dev libgdkcardimage0 libgimp2.0 libgnome2-0 libgnome2-common
libgnomeprint2.2-0 libgnomeprint2.2-data libgnomevfs2-0 libgnomevfs2-common
libgtk2.0-0 libmagic1 libmagick6 libmono0 libnautilus2-2 libpstoedit0
librsvg2-2 librsvg2-common libsdl-image1.2 libsdl-perl libssl0.9.7
libwxgtk2.4 libx11-6 libx11-dev libxft2 libxml2-utils libxslt1 libxslt1.1
lyx-common mknbi mono-assemblies-base mono-common mono-jit mozilla-firefox
mozilla-plugin-vlc muine nautilus nautilus-media netspeed pppconfig
python2.3-gtk2 rhythmbox scribus synaptic vlc vpnc wxvlc x-dev xfce4-panel
xlibmesa-dri xlibs-data xloadimage
0 upgraded, 0 newly installed, 0 to remove and 271 not upgraded.

Durand Hicks
08-02-2004, 05:30 AM
Run apt-get -f install as root to get apt-get unstuck first. If it still reports a breakage at the first package it's trying to fix, I believe it might be the cloop-utils package, you'll need to either do this to get it installed:
dpkg -i --force-overwrite cloop-utils-version#_i386.debIt seems like it needs other packages to be upgraded as well for the cloop-utils package to install successfully. Once you do the force-overwrite, follow up with
dpkg --configure -ato configure the rest of the downloaded packages before resuming with apt-get.

DimGR
08-02-2004, 05:41 AM
Run apt-get -f install as root to get apt-get unstuck first. If it still reports a breakage at the first package it's trying to fix, I believe it might be the cloop-utils package, you'll need to either do this to get it installed:
dpkg -i --force-overwrite cloop-utils-version#_i386.debIt seems like it needs other packages to be upgraded as well for the cloop-utils package to install successfully. Once you do the force-overwrite, follow up with
dpkg --configure -ato configure the rest of the downloaded packages before resuming with apt-get.


thank you but its the same problem again



home/dimgr# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 271 not upgraded.
root@PenguinGR:/home/dimgr# dpkg -i --force-overwrite cloop-utils-version#_i386.deb
dpkg: error processing cloop-utils-version#_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
cloop-utils-version#_i386.deb
root@PenguinGR:/home/dimgr# dpkg --configure -a
root@PenguinGR:/home/dimgr#

Durand Hicks
08-02-2004, 05:45 AM
Umm, I should have explained the cloops-utils-version#_i386.deb, where you should replace the words version# with the actual version number of the package you are trying to force overwrite. Look in /var/cache/apt/archives to find the package and force overwrite from that directory.

HTH,

Durand

Markus
08-02-2004, 08:12 AM
Sometimes a packages needs another one to install so as well as forcing you could also check with:
apt-get -s -b --ignore-hold install cloop-utils
This will tell you if it needs any new packages, then add the new packages to the line until it goes through like:
cd /var/cache/apt/archives
dpkg -i --force-all cloop-utils........deb another_package..........deb

Superstoned
08-02-2004, 10:38 AM
Umm, I should have explained the cloops-utils-version#_i386.deb, where you should replace the words version# with the actual version number of the package you are trying to force overwrite. Look in /var/cache/apt/archives to find the package and force overwrite from that directory.

HTH,

Durand

or download the latest package manually.

you must remember, knoppix isnt fully debian-compattible. thats why upgrading gives problems. kanotix is a knoppix-variant which tries to be knoppix for hdinstall. as much as possible debian-compattible. this might help...

and you might use synaptic for fixing some of the problems, too.