LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-18-2009, 08:06 PM   #1
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Rep: Reputation: 31
WHOOPS! Mixed repositories


Hi All,

I am running testing and accidentally uncommented unstable in my sources.list file. Before I noticed the error, I ran an aptitude update and then aptitude full-upgrade with both testing and unstable active. To try to fix things, I commented out unstable and ran aptitude update and then aptitude full upgrade again. Aptitude still shows 192 mb of packages that I believe are still a mix of the two repositories. Is there a way to fix this problem so that I'm just back to testing or am I hosed?

Thanks,

ab
 
Old 05-18-2009, 08:17 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I don't think that you are hosed. The situation is the same as if you were running testing and decided to move to the latest cutting edge version of a few packages by compiling them from source. If you have bad problems with an unstable package then delete that package and reinstall it from the testing repository.

---------------------
Steve Stites
 
Old 05-18-2009, 08:29 PM   #3
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Original Poster
Rep: Reputation: 31
Makes sense. Thanks for the response!

-ab
 
Old 05-18-2009, 11:19 PM   #4
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Original Poster
Rep: Reputation: 31
Hmm... now Synaptic is returning this:

unable to find expected entry restricted/binary-i386/Packages in Meta-index file (malformed Release file?)

Only has happened since my snafu.

-ab
 
Old 05-19-2009, 10:59 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can downgrade everything back to testing, most likely. Modify/create /etc/apt/preferences:

Code:
Package: *
Pin: release a=testing
Pin-Priority: 1001

Package: *
Pin: release a=unstable
Pin-Priority: 550
See the Debian docs and a Google for apt-pinning.

Run aptitude update then aptitude upgrade (I think).

To get rid of the last error, you may have to reuncomment the unstable line then aptitude update, not sure.

Once done, change the testing pin to 650; this will tell apt to always prefer testing but you will have the option of unstable (aptitude install -t unstable package).
 
  


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
Whoops! acey99 Linux - General 5 11-13-2005 02:55 PM
Whoops with prelink andrewjg Linux - Software 2 03-02-2005 06:16 PM
whoops! mistake using parted dee999 Linux - Software 3 05-08-2004 07:22 PM
can apt repositories be mixed, redhat and connectiva?? bosewicht Linux - Newbie 1 11-27-2003 07:08 PM
Whoops! megaspaz General 3 10-31-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:21 PM.

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