LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-03-2011, 02:47 AM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
why aptitude install won't get my packages?


Hello, i'm atempting to upgrade my kernel. I found this guide,
http://admin-board.com/mediawiki/ind.../Debian_kernel

I have atempted to follow it, however, in the part,
Quote:
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
It fails to get the packages. I use aptitude but tried apt-get when aptitude failed and neither work. I made it simpler, and just tried
Quote:
aptitude install kernel-package
These are the resuls
"root@thinkpadx220:~# aptitude install kernel-package
No candidate version found for kernel-package
No candidate version found for kernel-package
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used."

Here is my sources.lst
Quote:

#

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Off$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Offi$

deb http://security.debian.org/ squeeze/updates main$
deb-src http://security.debian.org/ squeeze/updates $

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install. $
# are provided as examples, but you should amend the$
# for your mirror of choice.
#
deb http://ftp.debian.org/debian/ squeeze-updates m$
deb-src http://ftp.debian.org/debian/ squeeze-updat$
deb http://backports.debian.org/debian-backports sq$
sorry about the sources being cut off, i just copied and pasted from nano.
 
Old 09-03-2011, 02:59 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I had a similar problem some time ago on a new installation. It seemed that just pointing to ftp.debian.org didn't work as expected. Putting in a country code like this: ftp.es.debian.org (for Spain) did the trick. Change in your sources.list, run
Code:
apt-get update
apt-get upgrade
apt-get install kernel-package
Kind regards,

Eric
 
Old 09-03-2011, 06:18 PM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hi Erictra, i tried what you said, living in Australia i changed the mirrors to:
ftp.au.debian.org/debian/
and then did aptitude update, then aptitude upgrade, nothing was done though. then i tried aptitude install kernel-package, and i still get the same message as before.
 
Old 09-03-2011, 07:08 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Knightron

pls post your sources.lst or look at
http://www.linuxquestions.org/questi...e-list-330913/

my debian.lst is

deb http://mirror.internode.on.net/pub/debian sid main contrib non-free

but I use a third party kernel which is

liquorix.lst

deb http://liquorix.net/debian/ sid main

and as you can tell I am on sid but I use a very smart script called smxi which does my kernel and updates for me.
Its not automatic but bloody better than any apt tool.

.......from the site

smxi is an interactive script designed to help people maintain their systems. It supports Debian (Stable, Testing, and Sid) and true Debian based distros (such as, but not limited to, AntiX, Aptosid, Epidemic, Linux Mint Debian [LMDE], Mepis). It does not support Ubuntu based distros because there are too many differences between Debian and Ubuntu.

---------- Post added 04-09-11 at 08:08 ----------

Knightron

pls post your sources.lst or look at
http://www.linuxquestions.org/questi...e-list-330913/

my debian.lst is

deb http://mirror.internode.on.net/pub/debian sid main contrib non-free

but I use a third party kernel which is

liquorix.lst

deb http://liquorix.net/debian/ sid main

and as you can tell I am on sid but I use a very smart script called smxi which does my kernel and updates for me.
Its not automatic but bloody better than any apt tool.

.......from the site

smxi is an interactive script designed to help people maintain their systems. It supports Debian (Stable, Testing, and Sid) and true Debian based distros (such as, but not limited to, AntiX, Aptosid, Epidemic, Linux Mint Debian [LMDE], Mepis). It does not support Ubuntu based distros because there are too many differences between Debian and Ubuntu.
 
Old 09-03-2011, 07:12 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
grrr I am double posting.

anyhow pls show the contents of your sources.list....it looks wrong

my contents are just one line above ok
 
Old 09-03-2011, 07:13 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
if its not too rude what is ISP as they may mirror debian for you?
 
Old 09-03-2011, 09:28 PM   #7
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hello, my isp is Telstra Bigpond, i use mobile broadband, and my sources.list is in my first post. Since taking Erics advice, i have changed, http://ftp.debian.org/debian/ to http://ftp.au.debian.org/debian/.
p.s.
why didn't you just edit your first post instead of posting three times?
 
Old 09-04-2011, 03:02 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by Knightron View Post
Here is my sources.lst
You don't even have the main repository there... just security and squeeze-updates - which is why nothing is installable.

A simple command like cat will show your sources.list, there is no need to copy and paste from a program like nano...

Code:
cat /etc/apt/sources.list
Copy and paste output from that here and use code tags [code][/code].

Debian mirror sites: http://www.debian.org/mirror/list

Howto for understanding, editing and maintaining sources.list: http://www.debianuserforums.org/viewtopic.php?f=9&t=388

Last edited by cynwulf; 09-04-2011 at 03:06 AM.
 
1 members found this post helpful.
Old 09-04-2011, 05:27 AM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I could not edit because the LQ site was giving me some grief.

2) keep your sources.list simple please but feel free to ignore me

---------- Post added 04-09-11 at 18:27 ----------

I could not edit because the LQ site was giving me some grief.

2) keep your sources.list simple please but feel free to ignore me
 
Old 09-04-2011, 08:57 PM   #10
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
EricTRA gave you the missing line above, so i assumed the problem was solved. Is it?
If not do what BricTRA or Caravel said, add the missing line, apt-get update and you are ready to go.
Deleting all the CD-lines, which are commented, won't hurt.

Once you can install again:
apt-get install pastebinit
pastebinit /etc/apt/sources.list
and you get the address where to find it. Post the link and you are done.
 
Old 09-04-2011, 09:47 PM   #11
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Thanks guys. I did what Caravel said, and it fixed ther issue. I'm new to Debian so i'm still learning a few things. Good links too Caravel, tought me a bit more. and also took your advice aus9, and cleaned it up a little too.
As for the cd sources, i'm going to leaves them there in case i decide to use them in the future.
 
Old 09-05-2011, 12:44 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Glad you've found the solution. Have fun with Linux.

Kind regards,

Eric
 
  


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
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 06:02 AM
apt aptitude commands not working - how to install packages w/ damn small linux? lenou Linux - Newbie 3 01-23-2010 09:00 AM
How to force aptitude to install recommended packages? crisostomo_enrico Debian 7 12-19-2007 07:13 AM
Duplicate packages in Aptitude wearetheborg Debian 2 06-02-2007 05:36 PM
Aptitude: How do install suggested packages automatically? Akhran Debian 7 09-06-2006 03:57 PM

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

All times are GMT -5. The time now is 10:44 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