LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-02-2009, 11:31 AM   #1
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Rep: Reputation: 1
Apt-get Missing Repositories, How to Fix?


Hello All,
First thanks for viewing my thread. I am obviously a linux beginner. I am trying to install OpenVpn and I am fallowing several tutorials and they say use
apt-get install update
apt-get install openvpn
Then I get the error Couldn't find package openvpn

I then looked at tutorials for fixing the apt-get problem and they further confused me. What should I do? Is there an easy and simple solution for me where I dont risk damaging my current setup and I can still use the same openvpm tutorials?


My sources.list file:
#
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 CD Binary-1 20090413-00:10/ lenny main

deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_Official i386 CD Binary-1 20090413-00:10/ lenny main

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

Thanks again!
Dan
 
Old 11-02-2009, 11:48 AM   #2
chiragrk
Member
 
Registered: Nov 2009
Location: India
Distribution: Xandros, Ubuntu
Posts: 74

Rep: Reputation: 16
"Couldn't find the package openvpn" in your case *might* mean that the repositories provided in sources.list do not have this package.
For start could you put a # on the first repository
i.e
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_Official i386 CD Binary-1 20090413-00:10/ lenny main

The do
apt-get update
apt-get install openvpn
 
Old 11-02-2009, 11:57 AM   #3
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
The reason is because you don't have the right entry in your sources.list.
Edit your sources.list to look something like this:

Code:
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_Official i386 CD Binary-1 20090413-00:10/ lenny main
deb http://ftp.uk.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.uk.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
Then do an apt-get update,then try reinstalling the package.
Obviously you can change the entry for UK to a more local mirror if you prefer.
 
  


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 repositories custangro Ubuntu 2 05-07-2007 11:56 PM
apt-get repositories missing FC4 Crasherz Linux - Software 4 07-11-2005 12:40 AM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
apt repositories????? BuffloTrace Mandriva 1 05-06-2004 12:09 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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