Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 44856  / 2 Years ago, sat, february 12, 2022, 4:17:31

I'm having some problems installing packages off the cd. The ubuntu server is installed in a small local network with a dns but no internet connection. When I try installing a package, i.e. lamp or vsftpd it just tries to resolve the name of the update server. After some tries it gives up instead of checking the CD. I've added the CD using sudo apt-cdrom add. I've also tried using tasksel, which opens aptitude, without any luck.



How do I install packages (lamp, ssh, ftp, dhcp, samba) off the CD without internet connection?



EDIT:
Since this was unclear: We're given a server with ubuntu server installed and we're supposed to install lamp, ssh, ftp, dhcp and samba on it. To ensure we aren't cheating (asking the internet for help during the contest) we are limited to using only the cd.


More From » apt

 Answers
0

Might as well help anyone who might have this problem.



The list of sources for apt to use is located in:
/etc/apt/sources.list



The first row is the cd, uncomment it by removing the leading hash. You can use nano to edit it like this:



sudo nano /etc/apt/sources.list



Enter the password if prompted.



Also, comment away all internet sources if they aren't available, i.e. you are on a computer without internet connection. Just add hashes in front of all the other rows.



After that you just save the file by pressing ctrl+o, and you're all good to go.


[#38840] Sunday, February 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulild

Total Points: 239
Total Questions: 103
Total Answers: 112

Location: Papua New Guinea
Member since Thu, Jul 9, 2020
4 Years ago
;