Comments on: How to Setup Local APT Repository Server on Ubuntu 22.04 https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/ Sun, 15 Oct 2023 17:15:22 +0000 hourly 1 By: Lan https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-57327 Thu, 17 Aug 2023 10:43:07 +0000 https://www.linuxtechi.com/?p=12059#comment-57327 In reply to wen.

############# end config ##############
deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu focal-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

#deb http://archive.ubuntu.com/ubuntu artful main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu artful-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu artful-proposed main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu artful-backports main restricted universe multiverse

#deb-src http://archive.ubuntu.com/ubuntu artful main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu artful-security main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu artful-proposed main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu artful-backports main restricted universe multiverse

]]>
By: wen https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-57179 Sun, 13 Aug 2023 05:40:56 +0000 https://www.linuxtechi.com/?p=12059#comment-57179 Hi Pradeep,

May i ask how do i include multiple repositories in the cnf script? currently it is as follows:
for p in “${1:-jammy}”{,security,updates}}/{main,restricted,universe,multiverse};

If i would like to include focal, what do i have to change or add?

Thank you.

]]>
By: Orkhana https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-56831 Fri, 04 Aug 2023 13:50:33 +0000 https://www.linuxtechi.com/?p=12059#comment-56831 Hi
I did all the steps in the tutorial instead the cronjob step. I get some errors as following:
Please help me )

E: Failed to fetch http://192.168.132.5/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-amd64/Packages 404 Not Found [IP: 192.168.132.5 80]
E: Failed to fetch http://192.168.132.5/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/Commands-amd64.xz Hash Sum mismatch
Hashes of expected file:
- Filesize:16968 [weak]
- SHA256:a2853985a54012119daedefa2cfe40b64f72910e08e56af972fb87542fff96ea
- SHA1:7aa4a3e3ed3fd0e42367c62bb20df8a53bfb12c5 [weak]
- MD5Sum:3ed2c21b74f9d79fe3e49e62accf3486 [weak]
Hashes of received file:
- SHA256:69dc328ced4a21b2ad87f082697acc3e9406ebcfada9a1a1be0a14f5b56dcc67
- SHA1:a4c098f120bfdcf249495aa5f9da49ba0c7859be [weak]
- MD5Sum:3346d131067120a925e8f8e2057ff957 [weak]
- Filesize:16968 [weak]
Last modification reported: Thu, 03 Aug 2023 18:18:11 +0000
Release file created at: Thu, 03 Aug 2023 20:01:41 +0000
E: Failed to fetch http://192.168.132.5/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-updates/universe/cnf/Commands-amd64.xz
E: Failed to fetch http://192.168.132.5/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-security/main/cnf/Commands-amd64.xz Hash Sum mismatch
Hashes of expected file:
- Filesize:13012 [weak]
- SHA256:913a09a340ac9174e8571169b80682f00eea224adeb89e61b0130852b7fd7523
- SHA1:ed0fee2ff53cd0e7dbfa658f563f2175fa65834e [weak]
- MD5Sum:44fc313d087fa7d7356f046faa75f576 [weak]
Hashes of received file:
- SHA256:08ae54589a0193419b4d962e3220edd1e12a49dda070e72f97737a95f6a76b46
- SHA1:7ab5262639d6091fb6e21fa1fcabde397e142355 [weak]
- MD5Sum:a3b6d43fe104d090e8055ec159b510ba [weak]
- Filesize:13012 [weak]
Last modification reported: Wed, 02 Aug 2023 17:19:29 +0000
Release file created at: Thu, 03 Aug 2023 17:45:16 +0000
E: Failed to fetch http://192.168.132.5/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-security/universe/cnf/Commands-amd64.xz
E: Some index files failed to download. They have been ignored, or old ones used instead.

]]>
By: wx https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-56171 Fri, 21 Jul 2023 04:38:57 +0000 https://www.linuxtechi.com/?p=12059#comment-56171 Hi Niyaz,

May I know what error you’re having? and which part of the tutorial is it happening at?
I recently upgraded 18.04 LTS to 22.04 LTS and it seems okay.

]]>
By: Pradeep Kumar https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-56120 Thu, 20 Jul 2023 07:44:44 +0000 https://www.linuxtechi.com/?p=12059#comment-56120 In reply to Niyaz.

HI Niyaz,

I will try to update steps for Ubuntu 22.04 in this post.

]]>
By: Niyaz https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-55671 Sat, 08 Jul 2023 14:10:23 +0000 https://www.linuxtechi.com/?p=12059#comment-55671 Hi Guys,
I have tried all the soutions above mentione for failed to fetch but still its throwing error, i need advice please.
Server version UBUNTU jammy 22.04

in below error I have replaced my reposerver IP with x.x.x.x

Need urgent support please

]]>
By: Chuck Donahue https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-49657 Fri, 24 Feb 2023 18:24:04 +0000 https://www.linuxtechi.com/?p=12059#comment-49657 Is there a way to remove an newly mirrored package that breaks some of our clients? Specifically I have setup a mirror of Mariadb, on Feb 2nd, apt-mirror pulled down the version 10.6.12 which breaks some of our systems. Is there a way to remove the latest package from our mirror and lock the version at 10.6.11?

]]>
By: Sine https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-44002 Thu, 03 Nov 2022 03:58:43 +0000 https://www.linuxtechi.com/?p=12059#comment-44002 Had to comment “clean ‘http://archive.ubuntu.com/ubuntu'” in /etc/apt/sources.list as it kept removing cnf directories and contents.

]]>
By: chicco https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-43441 Wed, 26 Oct 2022 14:38:29 +0000 https://www.linuxtechi.com/?p=12059#comment-43441 In reply to Bodae.

Without “\” it works.
I extended it with proposed and backports

$ vi cnf.sh
#!/bin/bash
for p in “${1:-focal}”{,-{security,updates,proposed,backports}}/{main,restricted,universe,multiverse};do >&2 echo “${p}”
wget -q -c -r -np -R “index.html*” “http://archive.ubuntu.com/ubuntu/dists/${p}/cnf/Commands-amd64.xz”
wget -q -c -r -np -R “index.html*” “http://archive.ubuntu.com/ubuntu/dists/${p}/cnf/Commands-i386.xz”
done

]]>
By: Workies https://www.linuxtechi.com/setup-local-apt-repository-server-ubuntu/#comment-23104 Thu, 27 May 2021 04:35:37 +0000 https://www.linuxtechi.com/?p=12059#comment-23104 In reply to Workies.

I solved the problem by downloading libmozjs-68-0 amd64 68.6.0-1ubuntu1 manually to the repo directory tree. I am guessing my original sync cut the file short.

]]>