Я загрузил репозиторий Ubuntu, используя apt-mirror
в системе, которую я скопировал в другую систему, чтобы создать репозиторий. Ссылка 1 - Загрузить зеркало | Ссылка 2 - Использование хранилища в автономном режиме
Хотя я пропустил шаг 4 и вручную создал его в конце, чтобы он работал нормально.
У меня есть система с воздушным зазором , и я не могу использовать inte rnet в целевой системе.
В новой системе, когда я получаю apt get update, я получаю следующий вывод:
Get:1 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:1 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,019 kB]
Ign:3 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Get:4 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Ign:4 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main Translation-en
Get:5 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Ign:5 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata
Get:6 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Ign:6 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
Get:7 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Ign:7 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons
Get:8 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9,184 B]
Ign:8 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages
Get:9 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3,584 B]
Ign:9 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/restricted Translation-en
Get:10 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]
Ign:10 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Get:11 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4,941 kB]
Ign:11 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe Translation-en
Get:12 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,287 kB]
Ign:12 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata
Get:13 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2,151 kB]
Ign:13 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons
Get:14 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,420 kB]
Ign:14 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons
Get:15 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Ign:15 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages
Get:16 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Ign:16 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en
Get:17 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
Ign:17 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata
Get:18 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8,931 B]
Ign:18 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons
Get:19 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Ign:19 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons
Get:3 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,019 kB]
Ign:3 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Get:4 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Ign:4 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main Translation-en
Get:5 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Ign:5 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata
Get:6 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Err:6 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
Hash Sum mismatch
Hashes of expected file:
- Filesize:118319 [weak]
- SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
- SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
- MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
Hashes of received file:
Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
Get:7 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:20 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [632 kB]
Ign:20 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
Get:21 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main Translation-en [207 kB]
Ign:21 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main Translation-en
Get:22 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.5 kB]
Ign:22 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata
Get:23 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17.6 kB]
Ign:23 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons
Get:24 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Ign:24 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons
Get:25 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [20.6 kB]
Ign:25 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages
Get:26 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [5,872 B]
Ign:26 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en
Get:27 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [643 kB]
Ign:27 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
Get:28 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [216 kB]
Ign:28 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe Translation-en
Get:29 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB]
Ign:29 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata
Get:30 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Ign:30 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons
Get:31 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [116 kB]
Ign:31 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons
Get:32 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6,328 B]
Ign:32 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages
Get:33 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,640 B]
Ign:33 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en
Get:34 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Ign:34 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata
Get:35 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons [29 B]
Ign:35 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 48x48 Icons
Get:36 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons [2,638 B]
Ign:36 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/multiverse DEP-11 64x64 Icons
Get:20 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [632 kB]
Ign:20 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
Get:21 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main Translation-en [207 kB]
Ign:21 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main Translation-en
Get:22 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.5 kB]
Ign:22 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata
Get:23 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17.6 kB]
Err:23 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons
Hash Sum mismatch
Hashes of expected file:
- Filesize:17563 [weak]
- SHA256:6099f6c0bf173272db80335785f3b2e92c32f68c983becdac5ca8aa0525a372a
- SHA1:faee265e503abfc8b5ec9375ec0ab3a1c62291d8 [weak]
- MD5Sum:a82fe81202d4495e51491800d1d8cbde [weak]
Hashes of received file:
Release file created at: Mon, 10 Feb 2020 09:54:14 +0000
Get:24 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu/dists/bionic/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu/dists/bionic/main/dep11/icons-48x48.tar.gz Hash Sum mismatch
Hashes of expected file:
- Filesize:118319 [weak]
- SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
- SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
- MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
Hashes of received file:
Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
E: Failed to fetch file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu/dists/bionic-security/main/dep11/icons-48x48.tar.gz Hash Sum mismatch
Hashes of expected file:
- Filesize:17563 [weak]
- SHA256:6099f6c0bf173272db80335785f3b2e92c32f68c983becdac5ca8aa0525a372a
- SHA1:faee265e503abfc8b5ec9375ec0ab3a1c62291d8 [weak]
- MD5Sum:a82fe81202d4495e51491800d1d8cbde [weak]
Hashes of received file:
Release file created at: Mon, 10 Feb 2020 09:54:14 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Мой список sources.list имеет такую строку
deb [ arch=amd64 ] file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic universe multiverse main restricted
Путь не на том же диске, что и у ОС.
Я сделал chown -Rv _apt:root /var/cache/apt/lists
и /var/apt/archives/partial
Я тоже сделал chmod -Rv 700 /var/apt/archives/partial
До этой ошибки не было Icon-48x48.tar
файла, а Icon-48x48.tar.gz
, который я gunzip
ped
Error:6 file:/media/tarun/Channel_2/offline_repo/mirror/in.archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons
Hash Sum mismatch
Hashes of expected file:
- Filesize:118319 [weak]
- SHA256:72a445c7d354db04d1ffca6f52f7ab66953a3fa889bb66bf6d3210d3ab100f14
- SHA1:176f580a423a2fcf3e257f0d9a00713e05545a35 [weak]
- MD5Sum:bdfd4c6a690b2f9d0790443956b327fd [weak]
Hashes of received file:
Release file created at: Thu, 26 Apr 2018 23:37:48 +0000
Постзеркало. sh Сценарий был такой -
#!/bin/bash
## anything in this file gets run AFTER the mirror has been run
## put your custom post mirror operations in here ( like rsyncing the installer files and running clean.sh automatically )
## Example of grabbing the extra translations and installer files from ubuntu ( note rsync needs to be installed
## and in the path for this example to work correctly )
# NOTE: This script should be run as root
#set -x
DISTS="bionic bionic-security bionic-updates"
TAGS="restricted multiverse universe main"
SOURCE_ROOT=gb.archive.ubuntu.com/ubuntu/dists
TARGET_ROOT=/media/touseef/Seagate1/Tarun/offline_repo/mirror/${SOURCE_ROOT}
for DIST in ${DISTS}
do
for TAG in ${TAGS}
do
echo "Removing ${TARGET_ROOT}/${DIST}/${TAG}/i18n"
rm -rf ${TARGET_ROOT}/${DIST}/${TAG}/i18n
echo "Getting i18n folder from http://${SOURCE_ROOT}/${DIST}/${TAG}/i18n/"
umask o+r,u+rw,g+rw
wget -P${TARGET_ROOT}/${DIST}/${TAG} -nH --cut-dirs=4 -r --reject "index.html*" --no-parent http://${SOURCE_ROOT}/${DIST}/${TAG}/i18n/
done
done