Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-02-2009, 12:31 PM   #1
Registered: Oct 2009
Posts: 30

Rep: Reputation: 0
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 lenny/updates main
deb-src lenny/updates main

Thanks again!
Old 11-02-2009, 12:48 PM   #2
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
# 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, 12:57 PM   #3
the trooper
Senior Member
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

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:

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

deb lenny/updates main contrib non-free
deb-src 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.


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

All times are GMT -5. The time now is 01:13 PM.

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