Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed Ubuntu Server 12.04 from CD onto a machine with no Internet connection. Originally I did not select the Samba file server task during installation, but now I want to install it. I have tried "sudo apt-get install samba" and "sudo apt-get install samba4" but the packages cannot be found.

I assume the necessary packages are on the CD. Do I have to explicitly mount the CD? If so, what should I mount it as?

I have found answers to questions about upgrading packages from the Internet, or installing lesser-used packages using apt-offline. But that seems unnecessarily complicated.

share|improve this question
    
See this page for assistance: help.ubuntu.com/8.04/serverguide/installing-from-cd.html –  user137510 Mar 4 '13 at 14:31
add comment

1 Answer

up vote 2 down vote accepted

Follow the step-by-step approach described in the link. You should be able to do it. https://help.ubuntu.com/community/Repositories/Ubuntu

Regarding the mounting related query

When you mount a disc normally with the file browser (nautilus etc) it mounts disks by interacting with udisks behind the scenes. You can do the same thing on the command line with the udisks tool. eg /usr/bin/udisks --mount /dev/sdb1 The bit after --mount is the device name of the partition you want to mount. (/dev/something)

Alternately try mounting the CD using the mount command.You can check the MAN page for "mount" if you are new to mount command.

share|improve this answer
    
The linked page and a related page have the solution. It seems that the "deb cdrom:" line is commented out by default. I uncommented it by removing a # and then executed sudo apt-get update. It is not necessary to mount the CD; it is sufficient to put the CD in the drive. Another useful command is sudo tasksel which reruns part of the character-mode GUI system install, and sudo tasksel install samba-server which installs the specific task. Thanks. –  jon1000 Feb 14 '13 at 19:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.