Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Repositories & Backports
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Repositories & Backports
Need help with apt-get and updating Ubuntu? Post here..

 
Thread Tools Display Modes
Old October 22nd, 2007   #1
newtonfn
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: Argentina
Beans: 72
Ubuntu 7.10 Gutsy Gibbon
[SOLVED] Force upgrades from a repository

Hi,

I'v added to my sources.list two repositories that have the same program. Actually "medibuntu" and "download.skype.com"

I'v installed some packages from medibuntu and previously i'v installed skype from the other repository.

Now, the update manager keep telling me that i have a pending upgrade, because it's believe that the skype on medibutu's repositories are newer than the other (in fact are the same)

I want to ignore the skype package from medibuntu repository... how can i accomplish that?

Sorry about my English.

Last edited by newtonfn; October 26th, 2007 at 11:49 PM..
newtonfn is offline   Reply With Quote
Old October 24th, 2007   #2
bapoumba
GMO Free Ubuntu French Roast.
 
bapoumba's Avatar
 
Join Date: Sep 2006
Location: France.
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: Force upgrades from a repository

It probably has to do with the version number in the medibuntu repositories. You can comment the medibuntu repos in your sources.list, or pin the current package version with synaptic.
bapoumba is offline   Reply With Quote
Old October 24th, 2007   #3
newtonfn
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: Argentina
Beans: 72
Ubuntu 7.10 Gutsy Gibbon
Re: Force upgrades from a repository

Thanks bapoumba,

How can I pin the current package with synaptic but allow futhers updates from a specified repositories to the same package ? The closest thing, that's seems to work, that I found in synaptic is Force Version, but that will not let me upgrade the package anymore.
newtonfn is offline   Reply With Quote
Old October 24th, 2007   #4
bapoumba
GMO Free Ubuntu French Roast.
 
bapoumba's Avatar
 
Join Date: Sep 2006
Location: France.
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: Force upgrades from a repository

Quote:
Originally Posted by newtonfn View Post
Thanks bapoumba,

How can I pin the current package with synaptic but allow futhers updates from a specified repositories to the same package ? The closest thing, that's seems to work, that I found in synaptic is Force Version, but that will not let me upgrade the package anymore.
True. The other solution is to install the medibuntu one (you said they were identical) and subsequently upgrade from medibuntu when a new version is available.
Package managers will always install the highest version from the repos specified in the sources.list.

So if you want to keep the "download.skype.com" package, comment the medibuntu repos (you can uncomment them on the spot once to upgrade some other packages).

In any case, all my third party repos are commented for day-to-day upgrades or installs. I uncomment for specific upgrades, or installs, and comment them right after that (same thing for the backports).
bapoumba is offline   Reply With Quote
Old October 26th, 2007   #5
newtonfn
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: Argentina
Beans: 72
Ubuntu 7.10 Gutsy Gibbon
Re: Force upgrades from a repository

After several days without internet I could do a little more research and solve my problem. (connectivity in my country is a nightmare)

Thanks the tip about "pin a package" and thanks Google and this forum I discovered that I could create a file called /etc/preferences where I can set a priority to sources and/or packages

I have created the file /etc/apt/preferences with the following text
Code:
Package: * 
Pin: release l=Medibuntu
Pin-Priority: 400
That tells apt that the Medibuntu repository have lower priority than others repositories. Then, if a package exist in other repository apt will try to install (or update) from them... if I request a package that only exist in Medibuntu, then will be installed from Medibuntu.

More information can be found goggling for "apt pin"
A site that was very useful for me is: http://www.debian.org/doc/manuals/ap...pt-get.es.html

Finaly, thank bapoumba for your assistance and patience.
Fernando
newtonfn is offline   Reply With Quote
Old October 27th, 2007   #6
bapoumba
GMO Free Ubuntu French Roast.
 
bapoumba's Avatar
 
Join Date: Sep 2006
Location: France.
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: Force upgrades from a repository

Hey, that is a very elegant solution
Many thanks to you for sharing it. I knew you could pin a package version, but never looked how to set a priority to a repo. Learning new things everyday ^^
bapoumba is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:57 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry