How to create a mirror server - for local (network) use with Debian 12, to update Debian, Ubuntu and Mint?

No, I thought I only have to do that, if I want to add custom packages. Do I have to do that for an offline mirror as well?
E: The repository 'http://192.168.178.101/debian bookworm-updates 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. E: The repository 'http://192.168.178.101 bookworm-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default.

It's saying you don't have a release file.
 


The problem was resolved for me, I was able to update with no errors and install tmux trough my debian apt mirror. Thank you very much!!!

Code:
root@apt-mirror-client:~# tmux
-bash: tmux: command not found
root@apt-mirror-client:~# apt update
Hit:1 http://192.168.178.101/debian bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@apt-mirror-client:~# apt install tmux
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libevent-core-2.1-7 libutempter0
The following NEW packages will be installed:
  libevent-core-2.1-7 libutempter0 tmux
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 595 kB of archives.
After this operation, 1493 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://192.168.178.101/debian bookworm/main amd64 libevent-core-2.1-7 amd64 2.1.12-stable-8 [131 kB]
Get:2 http://192.168.178.101/debian bookworm/main amd64 libutempter0 amd64 1.2.1-3 [8960 B]
Get:3 http://192.168.178.101/debian bookworm/main amd64 tmux amd64 3.3a-3 [455 kB]
Fetched 595 kB in 0s (15.1 MB/s)
Selecting previously unselected package libevent-core-2.1-7:amd64.
(Reading database ... 21363 files and directories currently installed.)
Preparing to unpack .../libevent-core-2.1-7_2.1.12-stable-8_amd64.deb ...
Unpacking libevent-core-2.1-7:amd64 (2.1.12-stable-8) ...
Selecting previously unselected package libutempter0:amd64.
Preparing to unpack .../libutempter0_1.2.1-3_amd64.deb ...
Unpacking libutempter0:amd64 (1.2.1-3) ...
Selecting previously unselected package tmux.
Preparing to unpack .../archives/tmux_3.3a-3_amd64.deb ...
Unpacking tmux (3.3a-3) ...
Setting up libevent-core-2.1-7:amd64 (2.1.12-stable-8) ...
Setting up libutempter0:amd64 (1.2.1-3) ...
Setting up tmux (3.3a-3) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
root@apt-mirror-client:~#
 
Okay another mystery solved. I am running these commands right now and will report back

I have a theory. 250GB takes a long time to copy. During that time, some files got updated while you were downloading them.
They don't match whatever is in the scanpackages/release file. I always rebuild this file every single time I do an update. It probably isn't always required, but it never hurts.
 
I have a theory. 250GB takes a long time to copy. During that time, some files got updated while you were downloading them.
They don't match whatever is in the scanpackages/release file. I always rebuild this file every single time I do an update. It probably isn't always required, but it never hurts.
I am now trying to add all the Debians and Mint Repos, will report back if it works. Here's a part of my mirror.list
Code:
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main

deb https://mirror.dogado.de/linuxmint faye main upstream import backport

How would I go about symlinking
Code:
deb http://security.debian.org/debian-security bookworm-security main
?
 
ln -s /your/original/mirror/directory "/var/www/html/debian-security bookworm-security main"
 
Last edited:
ln -s /your/original/mirror/directory "/var/www/html/debian-security bookworm-security main"
I did that one like this:
Code:
ln -s /var/spool/apt-mirror/mirror/security.debian.org/ "/var/www/html/debian-security bookworm-security main"

I don't think this is correct:
Code:
root@mirror:/var/www/html# ls
 debian  'debian-security bookworm-security main'   index.html
 
I don't think this is correct:

I think I misunderstood what you wanted.

What is the output of

ls -l /var/spool/apt-mirror/mirror

and the output of

ls -l /var/www/html
 
No success, too!
1736882352167.png
 
tree doesn't really show what I need here.

does /mnt/mirror/mint exist?

ls -l /mnt/mirror/mint
 

Members online


Top