LinuxMCE Forums
June 19, 2013, 05:34:00 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1] 2
  Print  
Author Topic: FIX: apt-get update / upgrade not upgrading  (Read 2299 times)
wombiroller
Guru
****
Posts: 340


View Profile
« on: July 14, 2010, 12:58:07 pm »

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 Wink
Logged
huh
Guru
****
Posts: 212


View Profile
« Reply #1 on: July 14, 2010, 02:03:37 pm »

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?


Logged
RayBe
Guru
****
Posts: 264



View Profile
« Reply #2 on: July 14, 2010, 02:30:39 pm »

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
Logged

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.
posde
Administrator
LinuxMCE God
*****
Posts: 2637


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #3 on: July 14, 2010, 03:23:31 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.
Logged

wombiroller
Guru
****
Posts: 340


View Profile
« Reply #4 on: July 14, 2010, 03:30:59 pm »

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:
Quote
sudo 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
Code:
# 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
Code:
# 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.

Logged
RayBe
Guru
****
Posts: 264



View Profile
« Reply #5 on: July 14, 2010, 04:00:59 pm »

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
Logged

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
Guru
****
Posts: 464


View Profile
« Reply #6 on: July 14, 2010, 04:59:47 pm »

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?
Logged
rperre
Guru
****
Posts: 264


View Profile
« Reply #7 on: July 14, 2010, 06:03:25 pm »

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

Code:
Package: *
Pin: origin
Pin-Priority: 9999

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


Richard
Logged

posde
Administrator
LinuxMCE God
*****
Posts: 2637


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #8 on: July 14, 2010, 07:03:24 pm »

Richard,

core and MD should have the same preferences file.
Logged

rperre
Guru
****
Posts: 264


View Profile
« Reply #9 on: July 14, 2010, 09:13:53 pm »

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
Logged

posde
Administrator
LinuxMCE God
*****
Posts: 2637


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #10 on: July 14, 2010, 10:18:04 pm »

Correct
Logged

Beeker
Guru
****
Posts: 213



View Profile
« Reply #11 on: July 15, 2010, 03:11:31 am »

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
Logged
wombiroller
Guru
****
Posts: 340


View Profile
« Reply #12 on: July 15, 2010, 06:03:44 am »

Beeker - are you running 0810 Beta?
Logged
Beeker
Guru
****
Posts: 213



View Profile
« Reply #13 on: July 15, 2010, 06:23:34 am »

yes
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2637


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #14 on: July 15, 2010, 07:17:48 am »

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.
Logged

Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!