LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2012, 07:35 PM   #1
phillip69
LQ Newbie
 
Registered: Jun 2012
Posts: 16

Rep: Reputation: Disabled
Why cant i use apt


When I am trying to use apt i get a bunch of error messages like this:
Package lynx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'lynx' has no installation candidate
 
Old 06-01-2012, 07:57 PM   #2
J.A.X
Member
 
Registered: Jan 2010
Distribution: Fedora 19
Posts: 83

Rep: Reputation: 3
Hello phillip,

Can you tell us please what version of Ubuntu you are using.
And please run "sudo apt-get update > error.log"

open the file error.log which will be created in the same directory you are in, and then submit the contents.

Regards.
 
Old 06-01-2012, 08:12 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
SynapticHowto - Community Ubuntu Documentation - https://help.ubuntu.com/community/SynapticHowto

Ubuntu Software Centre | Ubuntu - http://www.ubuntu.com/ubuntu/feature...oftware-centre
Installing software in Ubuntu - http://www.psychocats.net/ubuntu/installingsoftware
Repositories/Ubuntu - https://help.ubuntu.com/community/Repositories/Ubuntu

If by chance you are using Debian:
# Basics of the Debian package management system - http://www.debian.org/doc/FAQ/ch-pkg_basics.html
# Debian package management : http://www.debian.org/doc/manuals/de...e/ch02.en.html
# Debian package management tools http://www.debian.org/doc/manuals/de...gtools.en.html
# Newbiedoc : http://sourceforge.net/apps/mediawik..._documentation
# aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/
# Apt - Debian Wiki - http://wiki.debian.org/Apt
# The APT, Dpkg Quick Reference http://www.cyberciti.biz/ref/apt-dpkg-ref.html
# Secure APT - http://wiki.debian.org/SecureApt
# Aptitude - Debian Wiki - http://wiki.debian.org/Aptitude
# SourcesList - Debian Wiki - http://wiki.debian.org/SourcesList
# AptPreferences - Debian Wiki : http://wiki.debian.org/AptPreferences
 
1 members found this post helpful.
Old 06-01-2012, 08:22 PM   #4
phillip69
LQ Newbie
 
Registered: Jun 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
why cant i use apt

I am using the new Debian xfce on an old computer
 
Old 06-01-2012, 08:32 PM   #5
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 180

Rep: Reputation: 31
What does your /etc/apt/sources.list file look like?
Do you have the proper repositories listed for your distribution?
Do you have an operating internet connection with this machine
 
Old 06-01-2012, 08:33 PM   #6
phillip69
LQ Newbie
 
Registered: Jun 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
W: Failed to fetch http://http.us.debian.org/debian/squ...rce/Sources.gz 404 Not Found [IP: 35.9.37.225 80]

W: Failed to fetch http://http.us.debian.org/debian/squ...rce/Sources.gz 404 Not Found [IP: 35.9.37.225 80]

W: Failed to fetch http://http.us.debian.org/debian/squ...86/Packages.gz 404 Not Found [IP: 35.9.37.225 80]

W: Failed to fetch http://http.us.debian.org/debian/squ...86/Packages.gz 404 Not Found [IP: 35.9.37.225 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
 
Old 06-01-2012, 08:36 PM   #7
phillip69
LQ Newbie
 
Registered: Jun 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
It says
# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 xfce+lxde-CD Bi$

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 xfce+lxde-CD Bi$


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

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://ftp.debian.org/debian/ squeeze-updates main
deb-src http://ftp.debian.org/debian/ squeeze-updates main
deb http://http.us.debian.org/debian/squeeze main contrib non-free
deb-src http://http.us.debian.org/debian/squeeze main contrib non-free
 
Old 06-01-2012, 08:53 PM   #8
J.A.X
Member
 
Registered: Jan 2010
Distribution: Fedora 19
Posts: 83

Rep: Reputation: 3
Allright, can you first backup the contents of source.list and replace it with :

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 xfce+lxde-CD Bi$

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 xfce+lxde-CD Bi$


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

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#

deb http://ftp.debian.org/debian squeeze main
deb-src http://ftp.debian.org/debian squeeze main

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

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
 
Old 06-01-2012, 08:53 PM   #9
phillip69
LQ Newbie
 
Registered: Jun 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks for the help I got it working.
 
Old 06-01-2012, 08:59 PM   #10
J.A.X
Member
 
Registered: Jan 2010
Distribution: Fedora 19
Posts: 83

Rep: Reputation: 3
Quote:
Thanks for the help I got it working.
you are welcome my friend , can you please mark the thread as Solved.
 
Old 06-01-2012, 09:13 PM   #11
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Please use a mirror, it is considered bad form to use http://ftp.debian.org/debian


# Official Debian mirrors http://www.debian.org/mirror/list
# Also at http://ftp.debian.org/debian/README.mirrors.txt

You can also install netselect-apt and let it pick the fastest mirror for you.

Chances are you will want contrib non-free, and backports .

Code:
# Stable
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
# Stable Sources
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free

# Security Updates  http://www.debian.org/security/
deb http://security.debian.org/ squeeze/updates main contrib non-free

# Squeeze-updates 
deb http://http.us.debian.org/debian/ squeeze-updates main contrib non-free

# Debian Stable Backports
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
If you want a newer version of Iceweasel you can use the mozilla.debian.net repo
apt-get install pkg-mozilla-archive-keyring
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release

You may also want the deb-multimedia.org repo, some people love it (myself included) others swear it is evil.

# Debian Multimedia Packages - http://deb-multimedia.org/
# DMM mirror list http://deb-multimedia.org/debian-m
# Secure apt: apt-get install deb-multimedia-keyring
deb http://www.deb-multimedia.org squeeze main non-free
deb http://www.deb-multimedia.org squeeze-backports main

With all of the above repos you have access to over 30,000 Debian packages.

If you are new to Debian you may find the following helpful:
Howto get newer package versions for Debian Stable - https://www.linuxquestions.org/quest...-stable-34611/
Grokking Debian GNU/Linux - : http://www.linuxquestions.org/questi...nu-linux-3073/

Last edited by craigevil; 06-01-2012 at 09:16 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf rasec8711 Linux - Software 2 05-31-2012 11:33 AM
LXer: Make apt-get Installations and Upgrades 26x faster with apt-fast LXer Syndicated Linux News 1 10-25-2010 06:14 PM
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 11:13 PM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 06:50 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM


All times are GMT -5. The time now is 03:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration