Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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
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
Contents of sources.list was:
deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20140505-05:08]/ wheezy main
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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.
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.
So I just finished editing the file to contain those lines and I commented the cdrom line with a "#" however than it says that those lines were commented because they couldnt be veryfied. Did my research and it turns out that that happens because I did not configure the network while installing debian. So I found a site that generated the "sources.list" file for canadians tried that and the same error comes again
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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.
Ran "apt-get update" still didnt work. I returned to the website that generated the "sources.list" file and added security and updates. Then I ran "apt-get update" and it worked so after that I was able to do "apt-get openvpn" without any further problems.
Thank you very much for your help it was much apreciated
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.