SEARCH

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

You are not logged in.

#1 2012-09-14 09:09:51

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

How to upgrade your kernel to the latest version in backports

I have referred to this so many times now  that I decided to dedicate a thread to it.

Follow these instructions to upgrade:

(1) edit /etc/apt/sources.list
    uncomment the backports repository by removing the leading '#'

(2) edit /etc/apt/preferences
    See this link http://crunchbanglinux.org/forums/post/142270/#p142270

(3) update your index of packages

sudo apt-get update

(4) install the newest kernel

for 64-bit architecture:

sudo apt-get install -t squeeze-backports linux-image-3.2.0-0.bpo.4-amd64

for 32-bit

sudo apt-get install -t squeeze-backports linux-image-3.2.0-0.bpo.4-686-pae

Use

uname -r 

to find out what your architecture is.

(5) Reboot into the new kernel
Installing the new kernel adds two entries to the GRUB menu. Select the top entry.

If you have problems booting into the new kernel, you can use the older kernel - it will now be the third entry in your GRUB menu.

Edit: Updated for bpo.4

Last edited by xaos52 (2012-11-22 19:40:51)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-09-14 09:33:31

vic
#! by Default
From: /grill
Registered: 2009-02-13
Posts: 3,361

Re: How to upgrade your kernel to the latest version in backports

Great! Quick reference list!


Time to move on!#

Offline

#3 2012-09-16 20:02:38

GotSupreme
Banned
Registered: 2012-09-12
Posts: 114

Re: How to upgrade your kernel to the latest version in backports

Thank you. Much appreciated

Offline

#4 2012-09-16 20:04:05

GotSupreme
Banned
Registered: 2012-09-12
Posts: 114

Re: How to upgrade your kernel to the latest version in backports

and I don;t get this part - (1) edit /etc/apt/sources.list
    uncomment the backports repository by removing the leading '#'

Offline

#5 2012-09-16 20:17:53

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: How to upgrade your kernel to the latest version in backports

GotSupreme wrote:

and I don;t get this part - (1) edit /etc/apt/sources.list
    uncomment the backports repository by removing the leading '#'

Can you show us what is in '/etc/apt/sources.list'


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#6 2012-09-16 20:28:01

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: How to upgrade your kernel to the latest version in backports

Thanks xaos52 smile Squeeze is ultra stable but it's nice to have a howto that will help those needing to upgrade their kernel to solve any problems they are having.

Offline

#7 2012-09-17 01:08:58

edps
Member
From: Rio de Janeiro, Brazil
Registered: 2012-05-19
Posts: 30
Website

Re: How to upgrade your kernel to the latest version in backports

great work!

I made a small script whose purpose is to upgrade Debian Squeeze to Debian Squeeze Backports, see it at:

https://edpsblog.wordpress.com/2012/09/ … backports/

thank you guys for all work! wink

Last edited by edps (2015-03-29 21:12:29)

Offline

#8 2012-09-29 01:10:41

thistle
Member
Registered: 2012-09-29
Posts: 12

Re: How to upgrade your kernel to the latest version in backports

What do you mean exactly for the first step?
I've tried exverything including

sudo edit /etc/apt/sources.list/

but it shows me this:

Warning: unknown mime-type for "/etc/apt/sources.list" -- using "application/octet-stream"
Error: no "edit" mailcap rules found for type "application/octet-stream 

Offline

#9 2012-09-29 01:14:28

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: How to upgrade your kernel to the latest version in backports

thistle wrote:

What do you mean exactly for the first step?
I've tried exverything including

sudo edit /etc/apt/sources.list/

You need to replace "edit" with the name of the editor you would like to use. If you are using Statler, this will be "gedit" or "nano"

sudo gedit /etc/apt/sources.list

Before you do this, are you absolutely sure you need the backports kernel? Don't install it unless you know you need it.

Last edited by pidsley (2012-09-29 01:19:27)

Offline

#10 2012-11-22 17:29:31

boomclart
#! Member
Registered: 2011-11-17
Posts: 83

Re: How to upgrade your kernel to the latest version in backports

I've tried updating but get the following

david@crunchbang-work:~$ sudo apt-get update
Hit http://dl.google.com stable Release.gpg
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en                                                                              
Hit http://ftp.uk.debian.org squeeze Release.gpg                                                                                                   
Ign http://ftp.uk.debian.org/debian/ squeeze/contrib Translation-en                                          
Ign http://ftp.uk.debian.org/debian/ squeeze/contrib Translation-en_GB                                       
Ign http://ftp.uk.debian.org/debian/ squeeze/main Translation-en                       
Ign http://ftp.uk.debian.org/debian/ squeeze/main Translation-en_GB                                          
Ign http://ftp.uk.debian.org/debian/ squeeze/non-free Translation-en                                         
Ign http://ftp.uk.debian.org/debian/ squeeze/non-free Translation-en_GB                                      
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_GB               
Hit http://security.debian.org squeeze/updates Release.gpg                                                   
Ign http://security.debian.org/ squeeze/updates/main Translation-en                                          
Ign http://security.debian.org/ squeeze/updates/main Translation-en_GB                                       
Hit http://dl.google.com stable Release.gpg                                                                  
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en              
Hit http://ftp.uk.debian.org squeeze Release                                           
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_GB           
Hit http://dl.google.com stable Release                                                
Hit http://security.debian.org squeeze/updates Release                                 
Hit http://dl.google.com stable Release                                                 
Hit http://ftp.uk.debian.org squeeze/main amd64 Packages                                    
Hit http://packages.crunchbang.org statler Release.gpg                                                            
Ign http://packages.crunchbang.org/statler/ statler/main Translation-en                    
Ign http://packages.crunchbang.org/statler/ statler/main Translation-en_GB                 
Hit http://dl.google.com stable/main amd64 Packages                  
Hit http://ftp.uk.debian.org squeeze/contrib amd64 Packages          
Hit http://ftp.uk.debian.org squeeze/non-free amd64 Packages                               
Hit http://security.debian.org squeeze/updates/main amd64 Packages                         
Get:1 http://packages.crunchbang.org squeeze-backports Release.gpg [828 B]
Ign http://packages.crunchbang.org/statler-mozilla/ squeeze-backports/iceweasel-release Translation-en
Ign http://packages.crunchbang.org/statler-mozilla/ squeeze-backports/iceweasel-release Translation-en_GB
Hit http://packages.crunchbang.org statler Release
Hit http://dl.google.com stable/main amd64 Packages                   
Hit http://packages.crunchbang.org squeeze-backports Release
Ign http://packages.crunchbang.org squeeze-backports Release
Hit http://packages.crunchbang.org statler/main amd64 Packages
Ign http://packages.crunchbang.org squeeze-backports/iceweasel-release amd64 Packages/DiffIndex
Hit http://packages.crunchbang.org squeeze-backports/iceweasel-release amd64 Packages
Fetched 828 B in 0s (1,871 B/s)
Reading package lists... Done
W: GPG error: http://packages.crunchbang.org squeeze-backports Release: The following signatures were invalid: KEYEXPIRED 1352888501
david@crunchbang-work:~$ sudo gedit /etc/apt/sources.list
david@crunchbang-work:~$ sudo apt-get install -t squeeze-backports linux-image-3.2.0-0.bpo.3-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-3.2.0-0.bpo.3-amd64
E: Couldn't find any package by regex 'linux-image-3.2.0-0.bpo.3-amd64'
david@crunchbang-work:~$ 
## CRUNCHBANG
## Compatible with Debian Squeeze, but use at your own risk.
deb http://packages.crunchbang.org/statler statler main
#deb-src http://packages.crunchbang.org/statler statler main

## CRUNCHBANG MULTIMEDIA
## Debian Multimedia Mirror
#deb http://packages.crunchbang.org/statler-mm squeeze main non-free
#deb-src http://packages.crunchbang.org/statler-mm squeeze main non-free

## CRUNCHBANG MOZILLA
## Debian Mozilla Mirror
deb http://packages.crunchbang.org/statler-mozilla squeeze-backports iceweasel-release
#deb-src http://packages.crunchbang.org/statler-mozilla squeeze-backports iceweasel-release

## DEBIAN
deb http://ftp.uk.debian.org/debian/ squeeze main contrib non-free
#deb-src http://ftp.uk.debian.org/debian/ squeeze main contrib non-free

## DEBIAN SECURITY
deb http://security.debian.org/ squeeze/updates main
#deb-src http://security.debian.org/ squeeze/updates main

## DEBIAN BACKPORTS
#deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
#deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
david@crunchbang-work:~$ uname -a
Linux crunchbang-work 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux

I'm having trouble with an intsall of the latest VirtualBox 4.2... after each shut down I have to re-install VirtualBox in order to start a machine.

Looks to be a lack of headers but I'm not sure how to get those, was hoping a full update to 3.2 would solve it.

I get nothing back when doing dpkg --get-selections | grep headers

Well... Solved the Vbox issuse with

sudo apt-get install linux-headers-$(uname -r)

But I'd still like to know why I can't upgrade to 3.2

Last edited by boomclart (2012-11-22 17:53:56)


FB | G+ | T

Offline

#11 2012-11-22 17:47:53

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

Re: How to upgrade your kernel to the latest version in backports

You need to run sudo apt-get update after you edit the sources list.

Offline

#12 2012-11-22 17:57:26

boomclart
#! Member
Registered: 2011-11-17
Posts: 83

Re: How to upgrade your kernel to the latest version in backports

Just tried that El_Koraco but get the same

david@crunchbang-work:~$ sudo apt-get install -t squeeze-backports linux-image-3.2.0-0.bpo.3-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-3.2.0-0.bpo.3-amd64
E: Couldn't find any package by regex 'linux-image-3.2.0-0.bpo.3-amd64'


FB | G+ | T

Offline

#13 2012-11-22 18:33:49

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

Re: How to upgrade your kernel to the latest version in backports

I see. Try to hit Tab twice after linux-image-3

Offline

#14 2012-11-22 19:41:15

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

Re: How to upgrade your kernel to the latest version in backports

Updated for bpo.4

Offline

#15 2012-11-22 19:48:41

boomclart
#! Member
Registered: 2011-11-17
Posts: 83

Re: How to upgrade your kernel to the latest version in backports

I don't have 3.
Where can I get this from to proceed?


david@wee-crunchbang:~$ sudo apt-get install -t squeeze-backports linux-image-
linux-image-2.6.30-2-486                     linux-image-2.6.32-5-xen-686                 linux-image-2.6-xen-686
linux-image-2.6.32-5-486                     linux-image-2.6.32-5-xen-686-dbg             linux-image-486
linux-image-2.6.32-5-686                     linux-image-2.6.36-2.dmz.5-liquorix-686      linux-image-686
linux-image-2.6.32-5-686-bigmem              linux-image-2.6-486                          linux-image-686-bigmem
linux-image-2.6.32-5-686-bigmem-dbg          linux-image-2.6-686                          linux-image-amd64
linux-image-2.6.32-5-amd64                   linux-image-2.6-686-bigmem                   linux-image-openvz-686
linux-image-2.6.32-5-openvz-686              linux-image-2.6-amd64                        linux-image-vserver-686
linux-image-2.6.32-5-openvz-686-dbg          linux-image-2.6-liquorix-686                 linux-image-vserver-686-bigmem
linux-image-2.6.32-5-vserver-686             linux-image-2.6-openvz-686                   linux-image-xen-686
linux-image-2.6.32-5-vserver-686-bigmem      linux-image-2.6-vserver-686                  
linux-image-2.6.32-5-vserver-686-bigmem-dbg  linux-image-2.6-vserver-686-bigmem

Last edited by boomclart (2012-11-22 19:49:16)


FB | G+ | T

Offline

#16 2012-11-22 20:00:14

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

Re: How to upgrade your kernel to the latest version in backports

3 has been replaced by 4!
First post has been edited.

Offline

#17 2012-11-22 20:44:32

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: How to upgrade your kernel to the latest version in backports

boomclart:  You need to enable the backports repo. wink  Looks like you're currently on Stable without backports.

Offline

#18 2012-11-22 20:56:48

boomclart
#! Member
Registered: 2011-11-17
Posts: 83

Re: How to upgrade your kernel to the latest version in backports

What a pleb... ignore me completely... I went and #'d bpo's instead of uncommenting them... I'm blaming the man flu.

Last edited by boomclart (2012-11-22 20:58:29)


FB | G+ | T

Offline

#19 2012-11-25 17:37:27

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: How to upgrade your kernel to the latest version in backports

Popping onto this thread to say that bpo.4 seems to be playing nicely with my frustrating Netgear Realtek wifi...for now. roll   I've been here before ("I recognize that tree")...new kernel works splendidly with my wifi for a few minutes or a few hours, but fails either in the middle of a session or after a reboot...but bpo.4 seems to be holding up OK after a reboot, and without having to run the wonky Realtek firmware script, so it looks like I might finally be able to get off of bpo.1.

Offline

#20 2013-01-15 13:25:34

konstantine
New Member
Registered: 2013-01-15
Posts: 3

Re: How to upgrade your kernel to the latest version in backports

Hello,

Sorry if I am posting in a wrong thread but was not sure so posted up here

I was facing the problem with my atheros card not being detected by crunchbang. I was using kernel 2.6.32-5-amd64, so other guys at irc channel suggested me to upgrade to the new kernel. So I followed the steps and upgraded to the kernel using :

sudo apt-get install -t squeeze-backports linux-image-3.2.0-0.bpo.4-amd64

Then installed atheros firmware using

sudo apt-get install -t squeeze-backports firmware-atheros

The graphics were working fine with the old kernel but when I rebooted my machine to new kernel no graphics shown up(only white lined on screen), terminals were also not working (ctrl+alt+fn2...). Though my wireless LED shown up fine white (was showing up orange with old kernel). Can anyone please let me know what could be the issue. Or how it can be resolved

Thanks in advance.

Offline

#21 2013-01-15 15:47:24

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

Re: How to upgrade your kernel to the latest version in backports

If you have a prop driver installed for your graphics card then you have to re-install the prop driver every time you change the kernel.
Post output of

lspci -knn | grep -EiA3 vga 

to see which graphics card you have.

Offline

#22 2013-01-15 16:13:20

konstantine
New Member
Registered: 2013-01-15
Posts: 3

Re: How to upgrade your kernel to the latest version in backports

Hello xaos52,

I was able to boot into new kernel but cannot get my atheros working now. That is a onboard wi-fi card. I checked this thread too

http://crunchbang.org/forums/viewtopic.php?id=18699

But that too did not helped me.

Please advice!

Offline

#23 2013-01-15 16:46:05

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

Re: How to upgrade your kernel to the latest version in backports

Lets start by identifying the device. Post output of

lspci -knn | grep -EiA3 net

afetr booting either in the new kernel or the old one - does not matter for now.

Offline

#24 2013-01-15 20:18:06

konstantine
New Member
Registered: 2013-01-15
Posts: 3

Re: How to upgrade your kernel to the latest version in backports

Sorry for the late reply here is the output :

crunchbang@crunchbang:~$ lspci -knn | grep -EiA3 net
02:00.0 Network controller [0280]: Atheros Communications Inc. Device [168c:0032] (rev 01)
    Subsystem: Hewlett-Packard Company Device [103c:1785]
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
    Subsystem: Hewlett-Packard Company Device [103c:3567]
    Kernel driver in use: r8169
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5209] (rev 01)

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.
Server: acrobat

Debian Logo