LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-09-2007, 09:44 AM   #1
f0nzie
LQ Newbie
 
Registered: May 2004
Posts: 10

Rep: Reputation: 0
apt-get install whatever fails


Hi guys,

When I try to install a package on my Debian etch system I get the following error:
Quote:
Reading package lists... Done
Building dependency tree... Done
E: The package linux-image-2.6.18-4-686 needs to be reinstalled, but I can't find an archive for it.
Stange, because I am already running on that kernel version:
Quote:
# uname -a
Linux data01 2.6.18-4-686 #1 SMP Wed Apr 4 17:47:02 PDT 2007 i686 GNU/Linux
Any suggestions to fix this?

Thanks in advance.
 
Old 08-09-2007, 10:09 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
post your /etc/apt/sources.list
 
Old 08-09-2007, 10:11 AM   #3
f0nzie
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Hi, thanks to have a look!

Quote:
# cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070404-08:50]/ etch contrib main

#deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070404-08:50]/ etch contrib main

deb http://ftp.belnet.be/debian/ lenny main
deb-src http://ftp.belnet.be/debian/ lenny main

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
 
Old 08-09-2007, 10:15 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
well, linux-image-2.6.18-4-686 is in Etch only. To reinstall it, you'd need to add etch to your sources.list, apt-get update, then reinstall it. But perhaps you should first say more about your setup; you're running off of Lenny, was this by choice? Why don't you have the latest kernel from lenny if so?
 
Old 08-09-2007, 10:24 AM   #5
f0nzie
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Okay, changing that wouldn't harm me too hard? ANd would fix it again?

Well too be honest, not running Debian for a long time. Coming from RPM based systems. I installed etch on this server, I didn't choose to go to Lenny.

This system was installed with an ISO from 3ware, see: http://www.3ware.com/KB/article.aspx?id=15012

Can I provide you any other info to be sure?
 
Old 08-09-2007, 10:29 AM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Here is my own sources.list for Lenny (avoid the ones that have amd64 in them):

Code:
# 
# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 CD Binary-1 20070528-11:20]/ lenny contrib main

#deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 CD #Binary-1 20070528-11:20]/ lenny contrib main

deb http://ftp.nl.debian.org/debian/ lenny main contrib non-free
# deb-src http://ftp.nl.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
# deb-src http://security.debian.org/ lenny/updates main contrib non-free

### Marillat Debian Multimedia ###
deb http://www.debian-multimedia.org/ testing main
# deb-src http://www.debian-multimedia.org/ testing main

# deb http://nightlies.videolan.org/build/sid-amd64/arch ./

deb http://debian.beryl-project.org/ etch main
deb-src http://debian.beryl-project.org/ etch main

### Maxer Multimedia (sometimes Down) ###
# deb http://repos.knio.it/ testing main contrib non-free
# deb-src http://repos.knio.it/ testing main contrib non-free
 
### Unofficial Debian Repository ###
deb http://ftp.debian-unofficial.org/debian/ testing contrib non-free restricted
# deb-src http://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted
 
### Beryl SVN Repository ###
# deb http://download.tuxfamily.org/3v1deb/ debian-unstable beryl-svn
 
### Compiz-Fusion Repository ###
deb http://download.tuxfamily.org/osrdebian unstable compiz-fusion-git
# deb-src http://download.tuxfamily.org/osrdebian unstable compiz-fusion-git
 
### Java LG3D Looking Glass ###
deb http://Javadesktop.org/lg3d/debian testing contrib
 
### Swiftfox, a Mozilla Firefox i686 Optimized Official Repository ###
deb http://getswiftfox.com/builds/debian unstable non-free
 
### Skype ###
# deb http://download.skype.com/linux/repos/debian/ stable non-free
 
### Opera Browser ###
# deb http://deb.opera.com/opera/ sid non-free
 
###Java 6 JRE/SDK (From Official Debian Repository) ###
# deb http://ftp.bononia.it/debian unstable main contrib non-free
 
### Enlightment E17 Official Repository ### 
deb http://edevelop.org/debian/ testing main

### InitNG- Next Generation Init Start Repository ### 
deb http://debian.mawk.org/debian/ binary/
# deb-src http://debian.mawk.org/debian/ source/

### eMoviX ###
# deb http://organact.mine.nu/debian/ unstable/
### WxWidget Repository ###
# deb http://apt.tt-solutions.com/debian/ etch main

# DEBIAN SID/UNSTABLE

### Official Debian Sid Repository ###
# deb ftp://ftp.it.debian.org/debian/ sid main contrib non-free
# deb-src ftp://ftp.it.debian.org/debian/ sid main contrib non-free
 
### Official Debian Testing Security Update ###
# deb http://security.debian.org/ testing/updates main contrib non-free
 
### Marillat Debian Multimedia ###
# deb http://www.debian-multimedia.org/ sid main
# deb-src http://www.debian-multimedia.org/ sid main
 
### Maxer Multimedia (sometimes Down) ###
# deb http://repos.knio.it/ unstable main contrib non-free
# deb-src http://repos.knio.it/ unstable main contrib non-free
 
### Unofficial Debian Repository ###
# deb http://ftp.debian-unofficial.org/debian/ sid contrib non-free restricted
# deb-src http://ftp.debian-unofficial.org/debian/ sid main contrib non-free restricted
 
### Beryl SVN Repository ###
# deb http://download.tuxfamily.org/3v1deb/ debian-unstable beryl-svn
 
### Compiz-Fusion Repository ###
# deb http://download.tuxfamily.org/osrdebian unstable compiz-fusion-git
# deb-src http://download.tuxfamily.org/osrdebian unstable compiz-fusion-git

### Java LG3D Looking Glass ###
# deb http://javadesktop.org/lg3d/debian unstable contrib
 
### Swiftfox, a Mozilla Firefox i686 Optimized Official Repository ###
##deb http://getswiftfox.com/builds/debian unstable non-free
 
### Skype ###
# deb http://download.skype.com/linux/repos/debian/ stable non-free
 
### Opera Browser ###
# deb http://deb.opera.com/opera/ sid non-free
 
###Java 6 JRE/SDK (From Official Debian Repository) ###
# deb http://ftp.bononia.it/debian unstable main contrib non-free
 
### Enlightment E17 Official Repository ###
# deb http://edevelop.org/debian/ unstable main
 
### InitNG- Next Generation Init Start Repository ### 
# deb http://debian.mawk.org/debian/ binary/
# deb-src http://debian.mawk.org/debian/ source/
 
### Bluetooth Gnome ###
# deb http://download.tuxfamily.org/osrdebian unstable gnome-bluetooth
# deb-src http://download.tuxfamily.org/osrdebian unstable gnome-bluetooth

### eMoviX ###
# deb http://organact.mine.nu/debian/ unstable/
### WxWidget Repository ###
# deb http://apt.tt-solutions.com/debian/ etch main
 
Old 08-09-2007, 11:24 AM   #7
f0nzie
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Hmm, changed the apt.sources and did an apt-get upgrade. It ran without problems, but system is not coming up again after reboot.

Looks like it can not find its /dev/sda1, probably a module problem with the 3ware controller.

Can I go back and use my last working kernel? Can I choose this somewhere in grub?
 
Old 08-09-2007, 11:28 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Grub should give you a choice, yes.
 
Old 08-09-2007, 11:31 AM   #9
f0nzie
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Have only two options,

one 2.6.18-4
and 2.6.18-4 (single user)

NOthing else ... Probably because I was already running the kernel 2.6.18-4, it just re-installed that one probably. Have no ideai how to bring that 3ware modules again up and running.
 
Old 08-09-2007, 01:36 PM   #10
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 636
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
You probably want a 2.6.20 kernel or higher

Quote:
Originally Posted by f0nzie
Okay, changing that wouldn't harm me too hard? ANd would fix it again?

Well too be honest, not running Debian for a long time. Coming from RPM based systems. I installed etch on this server, I didn't choose to go to Lenny.

This system was installed with an ISO from 3ware, see: http://www.3ware.com/KB/article.aspx?id=15012

Can I provide you any other info to be sure?
According to the link that you provided, the primary Debian (Etch) 4.0 ISO image provides support for 2.6.20+ kernel images for the 3ware 9500-9600 series. They also provide sources if you are using an older kernel.

To me, it makes sense to obtain a current kernel (if not already included in their ISO image).

At this point, perhaps the best thing to do is to start over.

Get the ISO image and save it, then record all the steps you perform. Note any messages, especially if warnings or errors aod document as you go. Then if you run into an issue again, tell us in detail the steps you took and what happened as a result of each step. That may help you find the problem yourself, but if not, at least you will be able to explain it to us, and someone may be better equipped to help you out.

Good luck!
 
Old 08-09-2007, 01:41 PM   #11
f0nzie
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Meanwhile I got it fixed with a Knoppix livecd (new version has support for the 3ware controller). Moved the old initrd image in place and system was up and running again.

Will have to test some procedures to keep the kernel of this machine up to date. A simple apt-get update seems to be not enough. Maybe I can update from .18 to .19, kernels>.19 are supporting the 9650 controller.
 
Old 08-09-2007, 02:33 PM   #12
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
If you are running lenny, like your sources.list says, the latest kernel is 2.6.21-2
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get fails ! Please help. iyerns Debian 2 10-10-2005 10:42 AM
apt-get update fails after login wolfe2554 Debian 1 02-07-2005 01:40 PM
apt-get install synaptic - fails sygin Linux - General 0 10-03-2004 10:00 AM
Install of woody fails at apt - no network connection - driver for ethernet card? wolfpeach Debian 1 06-24-2004 09:23 AM
apt update fails s_diptiman Linux - Newbie 0 10-22-2003 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration