E: Unable to locate package openvpn
So I am trying to install openvpn on Debian 7.5.0. However when I do
Code:
apt-get install openvpn Code:
Reading package lists...Done |
Is your computer connected to the internet and have you run "apt-get update" and what is in your sources.list?
A quick look at the Debian Packages site shows openvpn should be available for Wheezy (and Jessie and Sid). https://packages.debian.org/wheezy/openvpn |
Im pretty new with linux, so I dont know how to view contents of sources.list. Yes, I have tried apt-get update
|
Quote:
deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20140505-05:08]/ wheezy main |
How did you install Debian? It seems that apt is only looking at the CDROM for packages so if the packages is not on the CDROM (and many are not) you won't be able to install it at all.
The file /etc/apt/sources.list tells apt where to look for packages on the internet: https://wiki.debian.org/SourcesList If you don't have your machine connected to the internet (you didn't answer that question) you will have to find some other way of downloading packages. |
My machine is connected to the internet and I installed Debian from a CD. Even if I remove the CD the package is unlocatable
|
Your sources.list doesn't contain any software sources, so apt doesn't know where to look for software. It should look something like the following:
https://wiki.debian.org/SourcesList#...7_.22Wheezy.22 Ideally you would point to Debian mirrors nearer to you but that should at least allow you to install software. |
Quote:
|
You edit the file /etc/apt/sources.list to contain those lines then run apt-get update. I tend to comment out the line for the CDROM, but you don't have to, by adding "#" (without the quotes) at the beginning of the line.
You can edit the file with any editor you like but it must be done as root. |
Quote:
|
Quote:
Code:
E: Unable to locate package openvpn |
Once you have edited the file you should run "apt-get update" to make sure that apt knows which packages are available (this may take a while first time it is run) then run "apt-get upgrade" to ensure that you install any bugfixes and security updates (this, again, may take a while). If both those commands work you should be good to go installing openvpn. If those commands return any errors then let use know here.
|
Quote:
Thank you very much for your help it was much apreciated :) |
Glad to hear you got it working and thanks -- I'll have to remember this needs doing if the install is done without setting up network.
Remember to mark the thread solved also, by clicking the link towards the top of the page. |
Quote:
|
All times are GMT -5. The time now is 11:17 AM. |