Ubuntu This forum is for the discussion of Ubuntu 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-28-2005, 03:15 PM
|
#1
|
Member
Registered: May 2004
Location: France
Distribution: Debian
Posts: 135
Rep:
|
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...
|
|
|
08-29-2005, 06:58 AM
|
#2
|
Member
Registered: Jul 2005
Distribution: ubuntu5.04, ubuntu5.10, suse9.3, mandrake10.1, mandriva2006(beta), FC1-4, redhat9.0, debian sarge
Posts: 519
Rep:
|
ubuntu is debian so ur always gonna have debian packages.
|
|
|
08-29-2005, 07:01 AM
|
#3
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,916
|
It is not a good idea to mix Ubuntu and Debian packages. Stick with one or the other.
|
|
|
08-29-2005, 07:15 AM
|
#4
|
Member
Registered: May 2004
Location: France
Distribution: Debian
Posts: 135
Original Poster
Rep:
|
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.
|
|
|
08-29-2005, 07:33 AM
|
#5
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,916
|
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.
|
|
|
All times are GMT -5. The time now is 01:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|