I want to install some things offline from hard disk but I get errors at the offline computer and an installation of software is not possible.
1: The config file of apt-mirror:
Code:
############# config ##################
#
# set base_path /var/spool/apt-mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
2: Then I run apt-mirror:
Code:
root@notebook:~# apt-mirror
Downloading 30 index files using 20 threads...
Begin time: Wed Dec 12 01:17:44 2018
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Dec 12 01:17:57 2018
Processing translation indexes: [T]
Downloading 38 translation files using 20 threads...
Begin time: Wed Dec 12 01:17:57 2018
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Dec 12 01:18:04 2018
Processing DEP-11 indexes: [D]
Downloading 12 dep11 files using 12 threads...
Begin time: Wed Dec 12 01:18:04 2018
[12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Dec 12 01:18:12 2018
Processing indexes: [P]
60.1 GiB will be downloaded into archive.
Downloading 51644 archive files using 20 threads...
Begin time: Wed Dec 12 01:18:14 2018
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Dec 12 05:57:50 2018
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.
3: I copy the Folder to a hard disk.
4: sources.list at offline computer:
Code:
deb file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian/ stable main contrib non-free
5: I Try:
Code:
apt clean
apt update
And now the output and the errors:
Code:
root@debian:~# apt clean
root@debian:~# apt update
Get:1 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch InRelease
Ign:1 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch InRelease
Err:2 http://deb.debian.org/debian stretch InRelease
Could not resolve 'deb.debian.org'
Get:3 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch Release [118 kB]
Get:3 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch Release [118 kB]
Get:4 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch Release.gpg [2434 B]
Get:4 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch Release.gpg [2434 B]
Get:5 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main amd64 Packages [7089 kB]
Ign:5 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main amd64 Packages
Get:6 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main Translation-en [5388 kB]
Ign:6 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main Translation-en
Get:7 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib amd64 Packages [50.9 kB]
Ign:7 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib amd64 Packages
Get:8 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib Translation-en [45.9 kB]
Ign:8 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib Translation-en
Get:9 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free amd64 Packages [78.6 kB]
Ign:9 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free amd64 Packages
Get:10 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free Translation-en [80.4 kB]
Ign:10 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free Translation-en
Get:5 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main amd64 Packages [7089 kB]
Ign:5 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main amd64 Packages
Get:6 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main Translation-en [5388 kB]
Ign:6 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main Translation-en
Get:7 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib amd64 Packages [50.9 kB]
Ign:7 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib amd64 Packages
Get:8 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib Translation-en [45.9 kB]
Ign:8 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib Translation-en
Get:9 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free amd64 Packages [78.6 kB]
Ign:9 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free amd64 Packages
Get:10 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free Translation-en [80.4 kB]
Ign:10 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/non-free Translation-en
Get:5 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main amd64 Packages [9488 kB]
Ign:5 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main amd64 Packages
Get:6 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main Translation-en [26.5 MB]
Err:6 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/main Translation-en
File not found - /media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian/dists/stretch/main/i18n/Translation-en (2: No such file or directory)
Get:7 file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian stretch/contrib amd64 Packages [61.2 kB]
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian/dists/stretch/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could not resolve 'deb.debian.org'
E: Failed to fetch file:/media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian/dists/stretch/main/i18n/Translation-en File not found - /media/root/HDD/apt-mirror/mirror/ftp.de.debian.org/debian/dists/stretch/main/i18n/Translation-en (2: No such file or directory)
W: Some index files failed to download. They have been ignored, or old ones used instead.
does anyone have an idea where the problem could be?
Thank you