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!
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
Re: Apt-mirror
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).
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/
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).
I only got contrib and non-free on initial run# 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:~#
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.
Re: Apt-mirror
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....
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....
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Apt-mirror
Print this:millpond wrote:Is there a printable faq out there (thats current) for compiling and backporting from those sources?
Code: Select all
apt-get source --target-release $branch --compile $program
deadbang
Re: Apt-mirror
Indeed they are:Head_on_a_Stick wrote:Print this:millpond wrote:Is there a printable faq out there (thats current) for compiling and backporting from those sources?Are your man pages broken as well?Code: Select all
apt-get source --target-release $branch --compile $program
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.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Apt-mirror
millpond wrote:Spasibo.
Search the man page with <Ctrl>+f and read the paragraph on the source option, that's where I got my suggestion from...
deadbang