Just passing by to confirm that the cifs + file method works fine.

Only make sure that the samba share is mounted world readable (otherwise
apt sandbox will complain).

And use one single slash on the file: line, for instance:

    deb file:/smb/someserver/deb   path/to/repo/

This would assumes that your *.deb files are available on
/smb/someserver/deb/path/to/repo/ from the local machine perspecitve.

I find this is the best method to access a repo on a file server, since
you likely don't want to mess up the apt config with how you access the
samba shares (user name, password, etc).

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/231806

Title:
  apt-get:  Add SMB to the valid Uri methods for software repositories

Status in apt package in Ubuntu:
  Triaged

Bug description:
  1.  I want to use my ubuntu 8.04.iso mounted via an linux SMB share in
  my apt sources list.  I used
  https://help.ubuntu.com/community/Repositories/Ubuntu for info and
  instructions, so I updated my sources list to include  'deb
  smb://10.10.10.66/ hardy main restricted' (a valid and accessible smb
  share on my network).  When I reload my sources, I get the following
  error in a pop up window: " The method driver /usr/lib/apt/methods/smb
  could not be found. "

  I looked at the man file for sources.list and didn't see SMB as a
  valid URI specification? Did smb get 'dropped' for some reason as a
  valid way to access repos or is there a way to add it to the methods
  section?

   Thanks,
    Dylan

  Ref:
  ls -la /usr/lib/apt/methods/
  total 392
  drwxr-xr-x 2 root root 4096 2008-05-12 17:47 .
  drwxr-xr-x 3 root root 4096 2008-05-12 17:47 ..
  -rwxr-xr-x 1 root root 15076 2008-04-22 08:21 bzip2
  -rwxr-xr-x 1 root root 19404 2008-04-22 08:21 cdrom
  -rwxr-xr-x 1 root root 11268 2008-04-22 08:21 copy
  -rwxr-xr-x 1 root root 12292 2008-04-22 08:21 file
  -rwxr-xr-x 1 root root 55836 2008-04-22 08:21 ftp
  -rwxr-xr-x 1 root root 24708 2008-04-22 08:21 gpgv
  -rwxr-xr-x 1 root root 15076 2008-04-22 08:21 gzip
  -rwxr-xr-x 1 root root 55432 2008-04-22 08:21 http
  -rwxr-xr-x 1 root root 15076 2008-04-22 08:21 lzma
  -rwxr-xr-x 1 root root 71920 2008-04-22 08:21 mirror
  -rwxr-xr-x 1 root root 15552 2008-04-22 08:21 rred
  -rwxr-xr-x 1 root root 22516 2008-04-22 08:21 rsh
  -rwxr-xr-x 1 root root 22516 2008-04-22 08:21 ssh

  cat /etc/apt/sources.list

  deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted 
  deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
  deb-src http://us.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse 
universe #Added by software-properties
  deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
  deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates restricted main 
multiverse universe #Added by software-properties
  deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
  deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
  deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
  deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
  deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted 
universe multiverse
  deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted 
universe multiverse
  deb http://archive.canonical.com/ubuntu hardy partner
  deb-src http://archive.canonical.com/ubuntu hardy partner
  deb http://security.ubuntu.com/ubuntu hardy-security main restricted
  deb-src http://security.ubuntu.com/ubuntu hardy-security restricted main 
multiverse universe #Added by software-properties
  deb http://security.ubuntu.com/ubuntu hardy-security universe
  deb http://security.ubuntu.com/ubuntu hardy-security multiverse
  deb http://us.archive.ubuntu.com/ubuntu/ hardy-proposed restricted main 
multiverse universe
  deb http://download.skype.com/linux/repos/debian/ stable non-free

  deb smb://10.10.10.66/ubuntu_804_intel_32bit/ hardy restricted main

  #the smb above is the valid SMB share from my linux server
  #it is a mounted loop iso image file and shared out in samba, I see it 
readily via network shares.


  This is the exact readout when doing a sources reload:
  The method driver /usr/lib/apt/methods/smb could not be found.The method 
driver /usr/lib/apt/methods/smb could not be found.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/231806/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to