How to create a Ubuntu repository server - LinuxConfig.org

This tutorial was quite helpful, thanks for your time. Your instructions were not to blame for the problems I experienced. They were caused by the version of apt-mirror that ships with Ubuntu 20.04.
Further details can be found in these github issues
apt-mirror apt-mirror issues 102
apt-mirror apt-mirror issues 118

Here’s the github updated apt-mirror package I used to solve this problem.
Stifler6996 apt-mirror

1 Like

Hi and thank you for your tutorial.
I followed all your steps and I can’t get an upgrade done.
My local server is working fine but after apt update on my client, it gets several outputs: Get, Ign & Err.
My system tells me it has fetched 21.8 MB. After I try to upgrade the client, it just tells me that he is done with 0 upgrades, 0 newly installed, 0 to remove and 0 not upgraded.
I would appreciate some help @sandmann

Hi Chmio57,

Welcome to our forums.

Could you please post the error messages you encounter? That would help us understand your issue better.

Of course, here you go:

apt-get update (…)
Fetched 483 kB in 1s (346kB/s)
Reading package lists… Done
E:Failed to fetch http:/192.168.9.250/ubuntu/dists/focal-backports/main/binary-i386/Packages 404 Not Found [IP: 192.168.9.250 80]
apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

The 404 is not my problem as I didn’t download everything for testing.

It always says 0 to upgrade and so on… Even when it fetches about 20 mB it has nothing to upgrade.

(Can’t put links in posts that’s why the http is wrong)

Seems to me that the 404 error is indeed your problem, because there is no metadata for apt to process (which should be under your Packages directory). You don’t need to download the whole repository for tests, but metadata is mandatory for it to work - that’s what tells apt where to find everything else.

1 Like