SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-30 11:41:18

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,747

How to survive backports upgrades using apt preferences

So, a lot of us have had trouble with all-out upgrades of X-related stuff with backports enabled. The thing is, that shouldn't happen, because the default setup in Debian is different than in #!.

If you look at /etc/apt/preferences, unless you've been apt-pinning stuff (but even if you've been apt-pinning and haven't changed anything related to Squeeze), you'll see this

Package: *
Pin: release n=statler
Pin-Priority: 1001

Package: *
Pin: release n=squeeze
Pin-Priority: 100

By default, backports get a pin priority of 100, so in regular Debian, where Squeeze has (I think) a priority of 500, bakcports only upgrades packages you choose to upgrade.

So, to survive the trouble most of us have been having in the last weeks, you do a

sudo  <editor> /etc/apt/preferences

and change the squeeze pin priority to 500. Update and upgrade, and no more breakage unless you choose to have it.

Last edited by el_koraco (2011-08-30 14:38:23)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-08-31 08:21:16

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,419

Re: How to survive backports upgrades using apt preferences

Great, el_koraco, I just proposed to make a sticky about it.

Offline

#3 2011-08-31 11:17:05

Kexolino
#! Junkie
Registered: 2011-06-13
Posts: 293

Re: How to survive backports upgrades using apt preferences

Awesome, thanks. Now if I could go back in time...

Offline

#4 2011-08-31 17:11:23

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: How to survive backports upgrades using apt preferences

dunno about sticky, but it would be handy to see it in the quick reference thread.

Offline

#5 2012-02-14 20:21:51

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 983

Re: How to survive backports upgrades using apt preferences

is this still of relevance with the new feb2012 backports image?


eee701 user & other lap/desktops

Offline

#6 2012-02-14 22:02:58

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,419

Re: How to survive backports upgrades using apt preferences

^ Yes, it is. Because of that @corenominal made also unbackported images. wink

Offline

#7 2012-05-27 13:12:33

estraperlo
Member
From: barcelona
Registered: 2012-05-26
Posts: 15
Website

Re: How to survive backports upgrades using apt preferences

Forgive you can confirm whether this would be the right thing?


Package: *
Pin: release a=statler
Pin-Priority: 1001

Package: *
Pin: release a=squeeze-backports
Pin-Priority: 500                    <------ ok?

Package: *
Pin: release a=squeeze
Pin-Priority: 500

Thanks


Comunidad hispanohablante CrunchBang ya!

Offline

#8 2012-05-27 13:33:12

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,595

Re: How to survive backports upgrades using apt preferences

No, not OK.
You give squeeze and squeeze-backports the same prior. So you leave it up to the system to choose which repo to install from.

squeeze-backports should have a lower priority than squeeze, forcing you to install from backports with the syntax:

apt-get install -t squeeze-backports <package name>

backports is for backporting individual packages, not all packages from backports at once.

It may work for you like this, but it is not the recommended debian way.

Last edited by xaos52 (2012-05-27 13:34:25)

Offline

#9 2012-05-27 18:23:15

estraperlo
Member
From: barcelona
Registered: 2012-05-26
Posts: 15
Website

Re: How to survive backports upgrades using apt preferences

Ok, thanks! smile


Comunidad hispanohablante CrunchBang ya!

Offline

#10 2012-05-30 17:43:47

duo
New Member
Registered: 2012-05-30
Posts: 2

Re: How to survive backports upgrades using apt preferences

Hi  #! folks! my first note here. first of all: this distro rocks! Its a very well thinked and desinged flavour of debian. keep up the good work corenominal!
I use the stable version (with xfce), but i want to give a try for the backported stuff.
What's the experience of the others with the stability; good enough for daily desktop use? I dont really know too much about backporting. i know only that there are more fresh packages, to keep more up to date the system till the next release.
(and maybe it is more stable than use the testing repos. i always ran X problems with wheezy or LMDE -rolling release- 4 example, after an update, there was no X not even consol, not even a single blinking cursor... on that point i couldn't win.)
So. the backports maybe fit to me, but there are questions:
can i make a backported version from stable by changing the /etc/apt/sources.list ?
What can i do when wheezy become stable? clean reinstall, or i have to do tricks with the sources.list again. or things go on without any problems?
what about that damned nouveau driver? i read somewhere that in the latest kernels nouveau even more difficult to remove/ disable. If i use dkms, upgrading the kernel doesn't make problem for the current nvidia closed driver?


thank you:

duo

p.s.: my english is not the best. sorry about that.

Offline

#11 2012-05-30 18:52:56

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,595

Re: How to survive backports upgrades using apt preferences

Hi duo,
(1) Yes, you change /etc/apt/sources.list to enable the backports repo.  You only have to uncomment a line.
(2) Use apt-pinning to install individual packages from backports with the syntax
sudo apt-get -t squeeze-backports <package name>
(3) If you have relatively new hardware, install the latest kernel from backports. It comes with newer drivers too.
(4) dkms works OK if you use the latest nvidia driver. Depends on your graphics card. For legacy nvidia drivers you need to download the driver from the nvidia site, and re-install that after a kernel upgrade.
(5) The 'Waldorf' version of #! is available now - release candidate - but is usable already. A fresh install is recommended.
Welcome to #!

Offline

#12 2012-08-19 08:03:30

kbmonkey
#! Die Hard
Registered: 2011-01-14
Posts: 808
Website

Re: How to survive backports upgrades using apt preferences

Enabling backports for a newer kernel, I quickly noticed bpo packages pulled in just installing gthumb. eek.

Get:1 http://backports.debian.org/debian-backports/ squeeze-backports/main libtdb1 i386 1.2.9-4~bpo60+1 [36.5 kB]
Get:2 http://backports.debian.org/debian-backports/ squeeze-backports/main libgmime-2.4-2 i386 2.4.25-1~bpo60+1 [218 kB]      

I quickly upped my statler pin priority and fixed the gthumb dependencies.

Now I understand pinning a lot better. Awesome, thanks @el_koraco! cool

Offline

#13 2012-11-21 20:04:46

rahulde17
New Member
Registered: 2012-11-21
Posts: 1

Re: How to survive backports upgrades using apt preferences

Whenever I Run System Update I get the following error msg-
W: GPG error: http://packages.crunchbang.org squeeze-backports Release: The following signatures were invalid: KEYEXPIRED 1352888501

Offline

#14 2012-11-22 15:10:01

NightJoe
Member
From: Venezuela
Registered: 2012-11-07
Posts: 11

Re: How to survive backports upgrades using apt preferences

Didn't realized that I have to set up the backports prioritys, at least I'll tune up my #! to his optimus upgrade. Thanks


Humans are source codes compiled in many programming languages, and all our hearts beats only 1's & 0's

Offline

#15 2012-11-27 04:05:06

machinebacon
#! unstable
Registered: 2009-07-02
Posts: 6,586

Re: How to survive backports upgrades using apt preferences

ivanovnegro wrote:

Great, el_koraco, I just proposed to make a sticky about it.

Gon9za3lez wrote:

Great, el_koraco, I just proposed to make a sticky about it.

wink

Offline

#16 2012-11-27 04:17:57

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How to survive backports upgrades using apt preferences

^ Taken care of, spam and bot both gone.

Thank you.


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#17 2012-12-01 14:47:39

brownegg
New Member
Registered: 2012-12-01
Posts: 1

Re: How to survive backports upgrades using apt preferences

rahulde17 wrote:

Whenever I Run System Update I get the following error msg-
W: GPG error: http://packages.crunchbang.org squeeze-backports Release: The following signatures were invalid: KEYEXPIRED 1352888501

I get this same issue after running "sudo apt-get update".  Anyone able to help?

Offline

#18 2012-12-01 18:08:50

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How to survive backports upgrades using apt preferences

brownegg wrote:
rahulde17 wrote:

Whenever I Run System Update I get the following error msg-
W: GPG error: http://packages.crunchbang.org squeeze-backports Release: The following signatures were invalid: KEYEXPIRED 1352888501

I get this same issue after running "sudo apt-get update".  Anyone able to help?

Welcome to CrunchBang!  See this thread for the solution

A search tool is on the top right of every page, it looks like a magnifying glass.  Putting that error in and searching showed several threads with the same issue.


VSIDO | SolusOS

Words That Build Or Destroy

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo