Download your favorite Linux distribution at LQ ISO.
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, 11:31 AM   #1
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 lenny/updates main
deb-src lenny/updates main

Thanks again!
Old 11-02-2009, 11:48 AM   #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, 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:

# 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-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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 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
Open Source Consulting | Domain Registration