LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2011, 05:37 PM   #1
Super TWiT
Member
 
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Rep: Reputation: 16
Apt-get install -f doesn't work?


When I use apt-get install -f stable, my system goes ahead and installs it from testing anyway. I am trying to get the thing to do apt-pinning. Here is my /etc/apt/sources.list:
Code:
# 
# deb cdrom:[Debian GNU/Linux 5.0.7 _Lenny_ - Official Multi-architecture amd64/i386/powerpc NETINST #1 20101128-01:15]/ lenny main

#deb cdrom:[Debian GNU/Linux 5.0.7 _Lenny_ - Official Multi-architecture amd64/i386/powerpc NETINST #1 20101128-01:15]/ lenny main

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

deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main

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

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

deb http://ftp.us.debian.org/debian experimental main non-free contrib
deb-src http://ftp.us.debian.org/debian experimental main non-free contrib
And here's my /etc/preferences file:
Code:
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 700

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 650

Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 600

Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 550
Any Ideas?
 
Old 03-27-2011, 06:42 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You have pinned Testing higher than Stable, therefore all installs will be done from this repository, unless you specify to use a different repository.
The command you gave:
Code:
apt-get install -f stable
will try to fix your dependency chain and install a package named stable.
The switch to specify the repository for apt-get is -t, so that your command should look like this:
Code:
apt-get -t stable -f install
I strongly recommend to not mix repositories (especially not all four of them), unless you know exactly what you are doing, and how to achieve what you want to do. Otherwise chances are very high that you will break your system.
 
Old 04-01-2011, 02:03 PM   #3
Super TWiT
Member
 
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Original Poster
Rep: Reputation: 16
I figured out the problem... Either I was using "-f" when I meant to use "-t" (I read the manual, but must have just been stupid) or I was looking at the dependencies that it was installing, since it still installs the dependencies from your main repo, but the package you specifically mentioned it installs from the specifically mentioned repository. (Looking at the commandline history it looks like I did infact use -t but must have been looking at the dependencies it installed or something)

Last edited by Super TWiT; 04-01-2011 at 02:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KPackageKit in Karmic doesn,'t work with a valid /etc/apt/preferences files FrancisH Ubuntu 1 01-25-2010 02:05 PM
Can't get apt-get install gyach to work? Black.UCoD Ubuntu 7 09-17-2006 09:28 PM
New slackware install and my debian doesn`t work well Sinaz Slackware 2 03-11-2006 07:15 AM
apt-get -f install wont work newbieX Linux - Newbie 1 02-23-2005 06:54 AM
PS/2 mouse doesn´t work :( teekaay Slackware 7 01-08-2004 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration