Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Apt-mirror

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
millpond
Posts: 698
Joined: 2014-06-25 04:56

Apt-mirror

#1 Post by millpond »

Using buster/sid

Installed apt-mirror

Edited etc/apt/mirror.list to remove comment hashes to default output dirs in var.

Did not work.

The variable name format_byte needs to be searched and replaced with something like xfmt_byte. Perl is not accepting , apparently, system names as even partial var names.

Also, the instructions of:
mirror -c mirror.list
- does not work.

It wont find it. Edited the location for mirror.list in /bin/mirror and put it in the /bin directory.

The correct command appears to be:
mirror mirror.list

Now, works fine.

M question is, that as I have it mirroring 'unstable' (Sid), I am assuming it will also pull in all older packages not updated recently. As in the entire archives for my architecture - AMD64?

I am also pulling in source. Is there a printable faq out there (thats current) for compiling and backporting from those sources?
I've seen them for jessie and earlier, dunno is anything has changed, or remember where they are!

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Apt-mirror

#2 Post by llivv »

sid amd64 sysv apt-mirror -
checked for /bin/mirror (not there)
checked /etc/apt/mirror.list (looked good to me) for a dry run
(I like to run defaults first to see how it behaves out of the box).
# apt-mirror wrote:@d3:~# df -hlT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 962M 0 962M 0% /dev
tmpfs tmpfs 196M 232K 195M 1% /run
/dev/sdd3 xfs 21G 12G 9.5G 55% /
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 1.1G 56K 1.1G 1% /run/shm
@d3:~# apt-mirror
Downloading 42 index files using 20 threads...
Begin time: Thu Jan 17 15:47:51 2019
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Thu Jan 17 15:48:11 2019

Failed to open Release file from http://ftp.us.debian.org/debian/dists/unstable/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ftp.us.debian.org/debian/dists/unstable/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ftp.us.debian.org/debian/dists/unstable/Release at /usr/bin/apt-mirror line 507.
Processing translation indexes: [T]

Downloading 0 translation files using 0 threads...
Begin time: Thu Jan 17 15:48:11 2019
[0]...
End time: Thu Jan 17 15:48:11 2019

Failed to open Release file from http://ftp.us.debian.org/debian/dists/unstable/Release at /usr/bin/apt-mirror line 653.
Failed to open Release file from http://ftp.us.debian.org/debian/dists/unstable/Release at /usr/bin/apt-mirror line 653.
Failed to open Release file from http://ftp.us.debian.org/debian/dists/unstable/Release at /usr/bin/apt-mirror line 653.
Processing DEP-11 indexes: [D]

Downloading 0 dep11 files using 0 threads...
Begin time: Thu Jan 17 15:48:11 2019
[0]...
End time: Thu Jan 17 15:48:11 2019

apt-mirror: can't open index ftp.us.debian.org/debian//dists/unstable/main/source/Sources in process_index at /usr/bin/apt-mirror line 800.
Processing indexes: [Sapt-mirror: can't open index ftp.us.debian.org/debian//dists/unstable/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ftp.us.debian.org/debian//dists/unstable/contrib/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ftp.us.debian.org/debian//dists/unstable/non-free/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
P]

8.2 GiB will be downloaded into archive.
Downloading 1472 archive files using 20 threads...
Begin time: Thu Jan 17 15:48:12 2019
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Thu Jan 17 16:19:03 2019

0 bytes in 0 files and 0 directories can be freed.
Run /var/spool/apt-mirror/var/clean.sh for this purpose.

Running the Post Mirror script ...
(/var/spool/apt-mirror/var/postmirror.sh)


Post Mirror script has completed. See above output for any possible errors.

@d3:~#
I only got contrib and non-free on initial run
good thing too I wouldn't have had enough room in this partition for main
otherwise the local mirror looks good so far ....
https://github.com/apt-mirror/apt-mirror
https://backports.debian.org/Contribute/
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: Apt-mirror

#3 Post by millpond »

Typo.
It should be
apt-mirror mirror.list

with etc/apt/mirror.list moved or symlinked to /bin

Here it pulls down 160+ Gb
I have it include souce....

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Apt-mirror

#4 Post by Head_on_a_Stick »

millpond wrote:Is there a printable faq out there (thats current) for compiling and backporting from those sources?
Print this:

Code: Select all

apt-get source --target-release $branch --compile $program
Are your man pages broken as well?
deadbang

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: Apt-mirror

#5 Post by millpond »

Head_on_a_Stick wrote:
millpond wrote:Is there a printable faq out there (thats current) for compiling and backporting from those sources?
Print this:

Code: Select all

apt-get source --target-release $branch --compile $program
Are your man pages broken as well?
Indeed they are:
APT-GET(8) APT APT-GET(8)

NAME
apt-get - APT package handling utility -- command-line interface

SYNOPSIS
apt-get [-asqdyfmubV] [-o=config_string] [-c=config_file] [-t=target_release] [-a=architecture] {update | upgrade
| dselect-upgrade | dist-upgrade | install pkg [{=pkg_version_number | /target_release}]... |
remove pkg... | purge pkg... | source pkg [{=pkg_version_number | /target_release}]... |
build-dep pkg [{=pkg_version_number | /target_release}]... |
download pkg [{=pkg_version_number | /target_release}]... | check | clean | autoclean | autoremove |
{-v | --version} | {-h | --help}}

Certainly not as succinct and clear as yours.

Spasibo.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Apt-mirror

#6 Post by Head_on_a_Stick »

millpond wrote:Spasibo.
:lol:

Search the man page with <Ctrl>+f and read the paragraph on the source option, that's where I got my suggestion from...
deadbang

Post Reply