LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apt-get Missing Repositories, How to Fix? (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-missing-repositories-how-to-fix-766265/)

danmartinj 11-02-2009 11:31 AM

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

chiragrk 11-02-2009 11:48 AM

"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

the trooper 11-02-2009 11:57 AM

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.


All times are GMT -5. The time now is 07:06 PM.