Author Topic: FIX: apt-get update / upgrade not upgrading  (Read 11945 times)

wombiroller

  • Guru
  • ****
  • Posts: 340
    • View Profile
FIX: apt-get update / upgrade not upgrading
« on: July 14, 2010, 01: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 ;)

huh

  • Guru
  • ****
  • Posts: 245
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #1 on: July 14, 2010, 03: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?



RayBe

  • Guru
  • ****
  • Posts: 315
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #2 on: July 14, 2010, 03: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
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: FIX: apt-get update / upgrade not upgrading
« Reply #3 on: July 14, 2010, 04: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.

wombiroller

  • Guru
  • ****
  • Posts: 340
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #4 on: July 14, 2010, 04: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: [Select]
# 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: [Select]
# 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

  • Guru
  • ****
  • Posts: 315
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #5 on: July 14, 2010, 05: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
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

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 858
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #6 on: July 14, 2010, 05: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?

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #7 on: July 14, 2010, 07: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: [Select]
Package: *
Pin: origin
Pin-Priority: 9999

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


Richard

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: FIX: apt-get update / upgrade not upgrading
« Reply #8 on: July 14, 2010, 08:03:24 pm »
Richard,

core and MD should have the same preferences file.

rperre

  • Guru
  • ****
  • Posts: 264
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #9 on: July 14, 2010, 10: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

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: FIX: apt-get update / upgrade not upgrading
« Reply #10 on: July 14, 2010, 11:18:04 pm »
Correct

Beeker

  • Guru
  • ****
  • Posts: 267
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #11 on: July 15, 2010, 04: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

wombiroller

  • Guru
  • ****
  • Posts: 340
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #12 on: July 15, 2010, 07:03:44 am »
Beeker - are you running 0810 Beta?

Beeker

  • Guru
  • ****
  • Posts: 267
    • View Profile
Re: FIX: apt-get update / upgrade not upgrading
« Reply #13 on: July 15, 2010, 07:23:34 am »
yes

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: FIX: apt-get update / upgrade not upgrading
« Reply #14 on: July 15, 2010, 08: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.