User Tools

Site Tools


Sidebar

articles:apt-repository-on-windows-share

apt repository on windows share

Setup

  • apt-mirror running on linux server/VM.
  • windows/samba share mounted on apt-mirror server

This design is needed only if your file storage is on a windows server.

Mount a windows/samba share as below to allow for apt-mirror to store the repository files.
NOTE: if you don't use the uid=xxx during the mount the apt-mirror command will not be able to write files. You will get an error about apt-mirror flock() - apt-mirror is already running. It assumes it cannot because it can't create the lock file at all. Replace the 123 below to match your apt-mirror user. See /etc/passwd for the uid.

/etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=9a5b5515-73c2-48e7-b1c9-51233bdc49b7 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=08388c16-00a7-400f-8e6e-71777af44048 none            swap    sw              0       0

#NOTE: use the uid for apt-mirror or you won't be able to create the lock file
//192.168.0.10/apt-mirror   /mnt/apt-mirror cifs    username=winuser,winpassword,uid=123    0       0

Then modify your /etc/apt/mirror-list

############# config ##################
#
set base_path    /mnt/apt-mirror
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
... rest of file clipped

Discussion

Enter your comment. Wiki syntax is allowed:
F C I᠎ E E
 
articles/apt-repository-on-windows-share.txt · Last modified: 2017/07/13 15:52 by sparrow