Results 1 to 4 of 4

Thread: External HDD Repository?

  1. #1
    Join Date
    Jun 2009
    Location
    Klerksdorp, North West
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Unhappy External HDD Repository?

    Hi

    I use AptonCD to make regular backups of all apt installed packages, and store them on my external USB HDD. Is there a way that I can add that specific folder with all the packages on the external to my software sources list? I know you can add CDROM's. It's just really a shlep having to individually double click and install each and every one, as I am still a noob at this thing...lol. It would just make life easier, as Synaptic would then sort out all dependencies, cause it seems that you need to install them in a certain order. Just double clicking the package files and installing them that way, normally leaves me with a "dependencies unsatisfied" error

    Thanx

  2. #2
    Join Date
    Mar 2010
    Location
    Dublin, Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: External HDD Repository?

    You can add a line to the /etc/apt/sources.list file, which should do this for you.

    For the following example, I'm assuming the following: you're using Lucid, your USB hard disk is mounted on /media/disk, and the APTonCD repository is in the folder "repo/ubuntu".

    To edit the /etc/apt/sources.list file, type:

    Code:
    gksu gedit /etc/apt/sources.list
    Add the following line:

    Code:
    deb file:/media/disk/repo/ubuntu/ lucid main restricted universe multiverse
    Save the file and quit from gedit. Then, with your USB disk connected and mounted, type:

    Code:
    sudo apt-get update
    Your USB disk will now be added as a local repository.
    Matt
    blog.mattrudge.net for extra helpings of geeky Ubuntu goodness
    Get the Ubuntu Weekly Newsletter

  3. #3
    Join Date
    Jun 2009
    Location
    Klerksdorp, North West
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: External HDD Repository?

    Thanx lechien73

    Not sure if there is a big difference between physically editing the source.list file, or adding the source with Synaptic? I tried the latter, and it won't accept. Error pops up all the time: http://pastebin.com/GWXk878s

    PS: I am using karmic

  4. #4
    Join Date
    Mar 2010
    Location
    Dublin, Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: External HDD Repository?

    Could you post the output of:

    Code:
    ls /media/AnthonyHDD/ubuntuBackup/20100828/dists/karmic
    It would be interesting to see what is in that directory.

    Thanks
    Matt
    blog.mattrudge.net for extra helpings of geeky Ubuntu goodness
    Get the Ubuntu Weekly Newsletter

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •