Installing Packages From Testing Or Unstable While Using Stable
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: FreeBSD(preferred), Fedora 15, WebOS, Mac OS, NetBSD, Ubuntu (if I have no other choice)
Posts: 46
Rep:
Installing Packages From Testing Or Unstable While Using Stable
Is there any way to install packages from the testing or unstable repositories while still using stable? My problem is that I'm trying to install $PACKAGE from testing, but it depends on $DEPENDENCY_X.X+1 which is >= $DEPENDENCY_X.X Is there any way around this apart from moving to testing?
Add in a testing.list and unstable.list in /etc/apt/sources.list.d. Then keep them commented out (# at the beginning of the line). When you need to use one or the other, edit the file, remove the # to enable the repository, apt-get update to download the repository information, then apt-get install -t testing wahtever or apt-get install -t unstable whatever. Then after you're done, re-comment out the repository.
Now, take into consideration that doing this with some packages will cause all kinds of issues as it will create a dependency heck for other programs that want a version of a dependency below x.x.x while the program you're installing wants the depenedency of x.x.x+1 or greater. If you use this a lot, you may run into problems. I haven't when I've used it before (I now just run testing), but I've known it to happen.
what you trying to do is typically called "running a mixed system". Sometimes this is fine, but sometimes the dependencies can't really be met. I highly recommend backporting the package instead (I'm assuming you have already check if there is an official backport).
Ie get ths src deb from testing and build it against your stable system. See for example:
This approach will keep you on stable but give you the newer version of the package you want, without changing the versions of the packages it depends on. Note however that this works better for some packages than it does for others: eg you may need to backport one or more dependency as well.
Distribution: FreeBSD(preferred), Fedora 15, WebOS, Mac OS, NetBSD, Ubuntu (if I have no other choice)
Posts: 46
Original Poster
Rep:
If you must know, I'm trying to install aircrack-ng (for my own network- I don't do any illegal cracking). And I know I can run a mixed system, but I really, really don't want to for the reasons you've mentioned. There's nothing I can run it in apart from the rest of the system? Maybe something roughly equivalent to a jail?
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
Stable + unstable : Reversing to stable
Hi,
How can I go back to stable after I did this (I run stable) :
Code:
apt-get install rawtherapee/testing
(output below where I did not go as far as breaking glibc dependencies.
I never used the testing repos before)
I only read afterwards this thread that confirmed that running mixed versions
was a bad idea.
So what is the best way to come back to stable ?
1) edit /etc/apt:list and remove
deb http:/blabla testing main contrib non-free
And then which step 2 is best ?
2a) dpkg -r rawtherapee
2b) dpkg --purge rawtherapee
2c) apt-get --reinstall rawtherapee (presumably not having the unstable repos may work)
2d) aptitude update
2e) do nothing
(I stopped the package upgrade because of a warning on glibc and kdm being affected,
maybe I stopped early enough, and maybe nothing was updated - files were only unpacked if I understand correctly...)
Thanks
Code:
# apt-get install rawtherapee/testing
Selected version '4.0.11+dfsg-1' (Debian:testing [amd64]) for 'rawtherapee'
The following extra packages will be installed:
gir1.2-freedesktop gir1.2-glib-2.0 glib-networking glib-networking-common glib-networking-services gnome-desktop3-data libc-dev-bin libc6 libc6-dev libelfg0 libffi6 libfftw3-3 libfftw3-double3 libfftw3-single3 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglibmm-2.4-1c2a libgnome-desktop-3-2 locales python-gi rawtherapee-data
Suggested packages:
glibc-doc libfftw3-bin libfftw3-dev python-gi-cairo The following NEW packages will be installed:
libelfg0 libffi6 libfftw3-double3 libfftw3-single3 The following packages will be upgraded:
gir1.2-freedesktop gir1.2-glib-2.0 glib-networking glib-networking-common glib-networking-services gnome-desktop3-data libc-dev-bin libc6 libc6-dev
libfftw3-3 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglibmm-2.4-1c2a libgnome-desktop-3-2 locales python-gi rawtherapee rawtherapee-data
19 upgraded, 4 newly installed, 0 to remove
Do you want to continue [Y/n]? y
Get:1 http://ftp2.fr.debian.org/debian/ testing/main libc-dev-bin amd64 2.17-93 [223 kB]
Get:23 http://ftp2.fr.debian.org/debian/
saving uncommitted changes in /etc prior to apt run
1 file changed, 3 insertions(+)
Preconfiguring packages ...
(Reading database ... 206221 files and directories currently installed.)
Preparing to replace libc-dev-bin 2.13-38 (using .../libc-dev-bin_2.17-93_amd64.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc6-dev:amd64 2.13-38 (using .../libc6-dev_2.17-93_amd64.deb) ...
Unpacking replacement libc6-dev:amd64 ...
Preparing to replace locales 2.13-38 (using .../locales_2.17-93_all.deb) ...
Unpacking replacement locales ...
Preparing to replace libc6:amd64 2.13-38 (using .../libc6_2.17-93_amd64.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
Stopped glibc upgrade. Please retry the upgrade after you have checked or stopped services by hand.
dpkg: error processing /var/cache/apt/archives/libc6_2.17-93_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1 Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.17-93_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
Solved this way :
1) Remove the testing repo
2) Done then the following (maybe there was a more elegant solution)
# apt-get check
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (> 2.17) but 2.13-38 is installed
libc6-dev : Depends: libc6 (= 2.17-93) but 2.13-38 is installed
locales : Depends: glibc-2.17-1 but it is not installable
# apt-get -f install
The following extra packages will be installed:
locales-all
The following packages will be REMOVED:
build-essential g++ g++-4.7 libc6-dev libmjpegtools-dev libpcap-dev libpcap0.8-dev libquicktime-dev libreoffice-help-fr libreoffice-l10n-fr libstdc++6-4.7-dev locales zlib1g-dev
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.