LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2010, 11:35 AM   #1
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Rep: Reputation: 0
apt-get install always returns 'Couldn't find package'


Debian linux:
I've tried apt-get install with the following packages:

gcc
glibc-headers

and others and always get 'Couldn't find package'.

I tried doing an
apt-get update
and that worked without problem.

cheers

Last edited by adetheheat; 09-16-2010 at 11:36 AM.
 
Old 09-16-2010, 11:55 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
... Then please mark your thread as "Solved"
= Scroll up, "Thread tools" - "Mark as Solved".
TY
 
Old 09-16-2010, 11:56 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
apt-get install

You did not say if you could do an
apt-get dist-upgrade
with success. ??

Anyway:

If you want-need the exact package name for the install, try
apt-cache search gcc
though you may want to pipe it through less.

I often do
apt-cache search gcc |grep -i gcc | less
then run 'apt-get install <pkg>' against the exact package I want.

Note that if there is a meta-package for what you want, you are better off installing the meta-package. It makes upgrades less painful.
 
Old 09-16-2010, 12:02 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
You did not say if you could do an
apt-get dist-upgrade
with success. ??
No.

apt-get will not work unless it has been given a chance to search the repositories for what is currently available. The command to do this is apt-get update

Then it will work as expected.

Unfortunately, the OP has edited his question rather than following it up with another post, which causes confusion (as is happening here). adetheheat, please don't do this.

Edit: The text within the quote appears in a big font. Some sort of LQ Bug? It's not in my post-coding.
/Edit

Last edited by tredegar; 09-16-2010 at 12:03 PM.
 
Old 09-17-2010, 03:36 AM   #5
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Original Poster
Rep: Reputation: 0
[by the way my original post wasn't editted at all by me - it was all done in one go]

ok, sone of the apt-cache search calls work.
Some of the apt-get installs work.
I need to do about 16 installs.

question:

Some of the apt-cache search calls come back with nothing at all. Does this mean they can't be obtained or that they are already installed
or something else ? The thing is the work procedure I'm following says I need these 16 packages.
 
Old 09-17-2010, 04:23 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
[by the way my original post wasn't editted at all by me - it was all done in one go]
Then why does it say "Last edited by adetheheat; Yesterday at 17:36." ?

Quote:
Some of the apt-cache search calls come back with nothing at all.
This means the package was not found.
You need to list the correct repositories in /etc/apt/sources.list
Then run apt-get update
Then apt-get install packagename

What packages are you having trouble with?
 
Old 09-17-2010, 04:50 AM   #7
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
What packages are you having trouble with?
glibc-headers
glibc-devel
libcstdc++-devel
gcc
gcc-c++
zlib-devel
rpm
rpm-build
ncurses-devel
bison
make
bzip
tftp
nfs-user-server

This might be more hassle than its worth. If I download the full debian installer will it have these packages built into it ?
 
Old 09-17-2010, 04:55 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
These packages are all common, and easily available, if you have configured your sources.list to tell apt where to look for the repositories.

http://linuxappfinder.com/addrepo
 
Old 09-17-2010, 05:17 AM   #9
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
These packages are all common, and easily available, if you have configured your sources.list to tell apt where to look for the repositories.

http://linuxappfinder.com/addrepo
Ok my sources.list file looks bad:
Code:
deb cdrom:[Debian GNU/Linux 5.0.6 _Lenny_ -Official .....]/ lenny main

#Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ lenny/updates main
#Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ lenny/updates main

#Line commented out by installer because it failed to verify:
#deb http://volatile.debian.org/debian-volatile lenny/volatile main
#Line commented out by installer because it failed to verify:
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
thanks
 
Old 09-17-2010, 06:41 AM   #10
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Original Poster
Rep: Reputation: 0
thanks,
due to this thread:
http://www.linuxquestions.org/questi...=1#post4100480

things seem better now. I'm downlloading more packages than previously. I'll let you know if I need more help.
 
Old 09-20-2010, 05:19 AM   #11
adetheheat
Member
 
Registered: Jun 2010
Posts: 49

Original Poster
Rep: Reputation: 0
got further. managed to download most of the packages I need. Couldn't do:
glibc-headers
glibc-dev
libcstd++-devel
rpm-build
bzip

Get errors:
'Couldn't find package'
 
Old 09-20-2010, 01:14 PM   #12
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
In your other, very similar, thread here where you are also being advised to sort out your sources.list you say that you have "accidentally reinstalled" and now "kde works".

How anyone can accidentally reinstall linux is beyond me, but if everything is working, then please close this thread as SOLVED, if not then "Couldn't find package" means that your sources.list is wrong or incomplete.
 
  


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 error. Could not find package deostroll Ubuntu 11 01-13-2008 04:19 AM
apt-get install fluxbox..error: couldn't find package fluxbox 200mg Ubuntu 7 12-08-2006 03:33 PM
apt-get returns lots of errors and wont install packages... StrangeBiscuit Debian 14 09-25-2006 05:18 PM
apt-get returns unmet dependencies error with python2.3-sip4-qt3 package 1337ln Linux - Newbie 5 06-16-2006 07:36 PM
sudo apt-get install acroread returns "Couldn't find package acroread" swiadek Ubuntu 3 02-13-2006 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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