|
|
ubuntu系统同步apt源到本地: j3 V B/ Z2 [
( A4 k4 c6 o: }
" s: e. @9 m( \0 q1 v5 `3 v* |
; Q4 b% z, }1 K* {9 Jroot@localhost:~# apt install -y apt-mirror
! N6 B! a6 \* W, P. ^1 A3 i# nReading package lists... Done; P" c7 [, Y! l+ O
Building dependency tree... Done
7 n( M. H: g: f0 ]8 ?1 y9 m# rReading state information... Done: E% k+ r, q. c4 A! e5 J# p
The following NEW packages will be installed:
, q/ w0 f. [2 t3 t6 O apt-mirror
( V1 u0 } \1 D$ i0 M0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded.
1 `8 H( q* }6 J' f2 E$ Z0 wNeed to get 14.5 kB of archives.
' q- F9 j( Z3 f. r& j/ j+ XAfter this operation, 68.6 kB of additional disk space will be used.( o% w& D: O, Z. g1 G
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu lunar/universe amd64 apt-mirror all 0.5.4-2 [14.5 kB]3 S0 s& S) c4 k3 H. X' E
Fetched 14.5 kB in 0s (49.2 kB/s) ; E2 _. N/ p M) l2 N: z$ a! D* m
Selecting previously unselected package apt-mirror.1 I3 y# D4 t- W; @
(Reading database ... 82861 files and directories currently installed.)8 s+ y& t. l3 v
Preparing to unpack .../apt-mirror_0.5.4-2_all.deb ...3 }3 |) {; C1 ~8 y
Unpacking apt-mirror (0.5.4-2) ...: F, s- F' U1 b
Setting up apt-mirror (0.5.4-2) ...; G( E) r% ?% U0 C: n4 {. t5 x. l
Processing triggers for man-db (2.11.2-1) ...1 E9 e* B( @5 p' \) w- ~- s5 }2 Q- F
Scanning processes... & q4 M) f9 c( D
Scanning processor microcode...
# U5 X" w* H7 M' l+ \Scanning linux images... ( M( b0 G0 C! Y) m' I
6 R2 x3 f5 H) U/ s9 V" C! K" Q1 h# T) O$ z
Running kernel seems to be up-to-date.
) D& \2 k! T# ]0 m, z
1 w5 T" b, {! I! {9 S' U1 w" Q. \5 ]Failed to check for processor microcode upgrades.8 Q2 F" B! g6 r" R o! x9 {
! D. ?, g$ q" d6 XNo services need to be restarted.6 L: i' u& e* T$ i9 d
0 d' N7 `# q# r, s: r1 |
No containers need to be restarted.0 n* f v: T; l1 [6 H! _
* t7 ?" E( ^( A: S! F5 x
No user sessions are running outdated binaries.
& r9 E3 T" a, H
' i& j8 v# m/ ~' M1 v: D; ~, [No VM guests are running outdated hypervisor (qemu) binaries on this host.
( M5 B5 j. L& K$ k" w' m) p' T
6 w7 G( v. W0 v, K# i- V) H. ]. O4 c7 O
配置文件:5 W4 j) S6 s5 u- n
' @$ Q Z: u& r& s2 E# @( r5 ], t
############# config ##################
4 N5 [9 l0 S v9 l" R, l" w#
' M! ^+ e$ s. {set base_path /var/www/html/
5 k5 Y7 b8 { |6 }+ [#
/ |) W1 O7 i% V) l# set mirror_path $base_path/mirror
a+ s+ P! b$ }4 f! q) c# set skel_path $base_path/skel/ ^) `: q! ^9 Z& }# H/ Q
# set var_path $base_path/var# ], Z1 W1 V6 Q! Q% f; Q
# set cleanscript $var_path/clean.sh
4 Y4 g9 Y3 r8 C( s, X# set defaultarch <running host architecture>. ?& N9 F- \1 K( V) }# ^: n
# set postmirror_script $var_path/postmirror.sh2 F& F. x( H n" D( Z# s, x* q# k
# set run_postmirror 0
. w- A. [$ ?# g8 y! q) ]set nthreads 202 F- h% t- [* Q5 h$ C* w
set _tilde 0# {! r# ^5 m( c! m' |
#
( T0 b! e2 M3 o+ o' W7 C& f############# end config ##############' N5 |/ ^+ e f1 t1 c- z
& H- D* `% y) i# e- x: `8 H
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
* X5 S+ v* X* l
$ d: C6 H7 Q* h4 o. C
; n$ Y3 t9 V+ Ddeb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse* H: h. a8 z) V! b3 ]5 c
#deb-src http://archive.ubuntu.com/ubuntu kinetic-proposed main restricted universe multiverse
$ s$ [* z3 }2 ^0 i: s7 l#deb-src http://archive.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse
# s! ~' u& N. n6 { t- U1 g7 k$ }: N# R2 F1 S4 Q
clean https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/0 n3 v0 B- `* x! e' P) z6 u; z
' |. E& b+ F2 z' x% s/ [- A+ p: P
执行0 h/ s4 p+ I5 M
apt-mirror 4 a& q- M8 _! J
; P5 E2 `+ o$ _7 D+ H
- O* r" O: o6 Q3 q2 L- y) [/ A3 h- H8 n) _; W. L/ V
6 l2 z! T5 f+ X, U
: L4 n* k/ `( U8 e+ g, e
" D' Y+ s8 ~* R1 `2 a* O5 A8 K/ Q I+ z R; \2 F9 N8 t Y# v
|
|