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

Notices



Reply
 
Search this Thread
Old 08-28-2005, 04:15 PM   #1
djib
Member
 
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Rep: Reputation: 15
Ubuntu and debian packages


Hello,

I bought Debian Sarge's CDs and added them to my /etc/apt/sources.list using apt-cdrom add. Since I don't want to use Debian's packages if any Ubuntu package is available I created a apt/preferences file with the following content :

Code:
Packages: *
Pin: release o=Ubuntu
Pin-Priority: 900
Packages: *
Pin: release o=Debian
Pin-Priority: 50
but when I want to do a apt-get (dist-)upgrade it says that about 300 packets are about to be updated...

I don't understand what's wrong in my apt/preferences file. I even tried to put the pin priority to -10 for debian packages and it keeps on wanting to replace ubuntu packages with debian's.

If any one has any clue...
 
Old 08-29-2005, 07:58 AM   #2
boxerboy
Member
 
Registered: Jul 2005
Distribution: ubuntu5.04, ubuntu5.10, suse9.3, mandrake10.1, mandriva2006(beta), FC1-4, redhat9.0, debian sarge
Posts: 519

Rep: Reputation: 32
ubuntu is debian so ur always gonna have debian packages.
 
Old 08-29-2005, 08:01 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
It is not a good idea to mix Ubuntu and Debian packages. Stick with one or the other.
 
Old 08-29-2005, 08:15 AM   #4
djib
Member
 
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Original Poster
Rep: Reputation: 15
Hello,

I've been using debian for more than one year now (wich is not that much but still), mixing debian testing and unstable packages using the same kind of apt/preferences file as described above, and I never had any problem.

There are some packages in Ubuntu that are not available, and I have them on my debian CDs. I thought that with a apt/preferences file, I could install those missing packages.

Craigevel, if you say that I shouldn't mix packages, then what could I do to install those missing packages ? (I don't want to go on each website, download the source then compile it)

I would also like to understand why my apt/preferences file doesn't work as expected. Boxerboy, I have just checked the Release file in each CD (debian and ubuntu) and they do NOT have the same origin. One is Debian and the other one Ubuntu, so I don't understand why my apt/preferences file don't work.

Thanks.
 
Old 08-29-2005, 08:33 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
Do you have ALL of the Ubuntu repositories enabled? There are only a few packages that are in Debian repos that Ubuntu does not have. With all of the repos in Ubuntu enabled I have 16000+ packages, Debian with just stable, testing, and unstable I have a little over 18000.

Ubuntu sources.list covers pretty much anything.

You may have to list something like:

Package: *
Pin: release a=ubuntu
Pin-Priority: 1000

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Debain pulls from different repositories.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian & Ubuntu installer - cannot select packages? Barry Bingham Debian 5 08-03-2005 09:14 PM
Debian Packages and Ubuntu saltireboy Ubuntu 1 07-07-2005 08:28 AM
Yahoo IM, AOL IM and a few other packages, plus Debian and Ubuntu question webwolf70 Ubuntu 5 05-11-2005 12:30 PM
Ubuntu packages on Debian fatman Debian 10 03-14-2005 09:55 PM
Can ubuntu take .deb packages? Jmcatch742 Linux - Distributions 1 11-04-2004 01:14 AM


All times are GMT -5. The time now is 09:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration