I have created a local Ubuntu repository which only mirroring main packages from Ubuntu archives. However, now I am trying to add couple of packages which I have downloaded manually to this repo that they can be available to download but this doesnt seem to work.
Is there anything I am missing?
Packages copied under main in mirror server:
root@ubuntu-mirror:/var/www/html/ubuntu/pool/main/m# ls -l mypkgs/
total 88
-rw-r--r-- 1 root root 14492 Jan 5 11:04 apt-rdepends_1.3.0-9_all.deb
-rw-r--r-- 1 root root 72536 Jan 5 11:04 libapt-pkg-perl_0.1.40build2_amd64.deb
root@ubuntu-mirror:/var/www/html/ubuntu/pool/main/m#
Client:
root@ubuntu-client:/etc/apt# egrep -v "^#|^$" sources.list
deb http://192.168.122.114/ubuntu jammy main
root@ubuntu-client:/etc/apt#
root@ubuntu-client:/etc/apt# apt list apt-rdepends
Listing... Done
root@ubuntu-client:/etc/apt# apt install apt-rdepends
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package apt-rdepends
root@ubuntu-client:/etc/apt#
gn:2 http://192.168.122.114/myrepo InRelease Err:3 http://192.168.122.114/myrepo Release 404 Not Found [IP: 192.168.122.114 80] Reading package lists... Done E: The repository 'http://192.168.122.114/myrepo Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
– sunny_hkhk Jan 05 '24 at 03:51reprepro
. It's much more complicated, but is a fully known mechanism for a local repository (and I use it for my local package repos on my network). Debian's wiki is most useful for this - https://wiki.debian.org/DebianRepository/SetupWithReprepro - just make sure that you use "Ubuntu" in place of "Debian", and your Ubuntu release codename instead of Debian codenames. The rest of it for management, etc. is still the same. – Thomas Ward Jan 05 '24 at 13:59