News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

FIX: apt-get update / upgrade not upgrading

Started by wombiroller, July 14, 2010, 01:58:07 PM

Previous topic - Next topic

wombiroller

FYI - I wasn't able to get any updates of late and didn't know why (using a June Snapshot 0810). Possy pointed out a fix:

/etc/apt/preferences - change Pin-Priority to 500

That will be all ;)

huh

Cool- thanks.   Two questions

1) Should I change both pins in that file to 500?
2) Should I only do this on the core- or on all of the mds too?



RayBe

wombiroller,

since i am a beginner to linux,
could u give a more detailed guide how to do this exactly?
and what exactly will there be chanced?

thanks a lot
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

Marie.O

Quote from: huh on July 14, 2010, 03:03:37 PM
Cool- thanks.   Two questions

1) Should I change both pins in that file to 500?
NO - only the 600 to 500
Quote
2) Should I only do this on the core- or on all of the mds too?

both.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

wombiroller

For the record, if you can already do a sudo apt-get update and sudo apt-get upgrade to get the new packages - I don't think you should be playing here....

huh - I only changed the one that was set to 600. Worked for me.

RayBe - open a command prompt and type:
Quotesudo pico /etc/apt/preferences
(pico is a terminal text editor, you can use others like vim but pico might be easier).

You will see this section
# If our local package uses the same version as elsewhere, we take the one we have locally.
Package: *
Pin: origin
Pin-Priority: 600

Change it to
# If our local package uses the same version as elsewhere, we take the one we have locally.
Package: *
Pin: origin
Pin-Priority: 500


Save the file and retry.


RayBe

Ok thanks,

If i do this right after the install, before i connect any md, do i still have to do this on the core and the md?

All the best

Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

maverick0815

so, I'm wondering what does changing the priority actually do -aside from the fact, that you get packages offered...or what is different with these packages in regards to packages I would get when they are with priority 600?

rperre

my question is on the md's the pin-priority is 9999. so still change that to the 500?

This is the preferences file on both my md's

Package: *
Pin: origin
Pin-Priority: 9999

Package: *
Pin: release v=8.10,o=Ubuntu,a=hardy,l=Ubuntu
Pin-Priority: 9998



Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

Marie.O

Richard,

core and MD should have the same preferences file.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

rperre

Thank you,

should have, i understand, but they don't.

Can i just copy the preferences file to the MD's? meaning this will not botch my install?

Richard
My setup at: [url="http://wiki.linuxmce.com/index.php/User:Rperre"]http://wiki.linuxmce.com/index.php/User:Rperre[/url]

Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

Beeker

Hi All,
Attached is a list of the errors I am having whilst trying to do an update, I have modified the Pin priority to 500 still getting errors at the end of apt-get upgrade and apt-get update any help would be very much appreciated.....stuck in a rut

Cheers
Beeker

wombiroller


Beeker


Marie.O

Beeker,

remove the avenard repo from your sources.list. You will still get a couple of not founds during apt-get update, but apt-get upgrade should run through.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]