Nowe posty

xx Dystrybucja pod HP Omen (6)
Wczoraj o 23:30:08
xx [Poradnik] Wyszukiwanie Sterowników (2)
Wczoraj o 21:08:23
lamp Problem z Linux Lite po instalacji (0)
Wczoraj o 19:50:30
xx Ile pingwinów? (1)
Wczoraj o 08:59:24
xx konfiguracja pale moon (0)
2024-03-24, 21:53:42
xx Plasma 6 w Neonie ssie trochę mniej ... (10)
2024-03-23, 02:38:11
xx problem z instalacja sterowników do karty sieciowej (3)
2024-03-18, 18:10:16
xx Plik abc.001 (1)
2024-03-17, 17:48:27
xx Zlecę dopracowanie programu w MatLab (0)
2024-03-13, 15:28:40
xx Linux Mint 21.3 XFCE brak dźwieku po paru minutach (karta muzyczna zintegrowana) (5)
2024-03-12, 23:07:01

Autor Wątek: Ubuntu Server - problem z instalacją pakietów  (Przeczytany 2182 razy)

moonadam

  • Gość
Ubuntu Server - problem z instalacją pakietów
« dnia: 2017-03-29, 13:53:39 »
Witam,

Mam problem z instalacją pakietów pod Ubuntu Server 16.10. Na serwerze nie ma żadnego środowiska graficznego więc próbuję instalować pakiety spod konsoli.  Przykładowo chciałem zainstalować gcc i otrzymałem komunikaty "Failure to fetch"

root@vm:~# apt-get install gcc make
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-6 gcc-6 libasan3 libatomic1 libc-dev-bin libc6 libc6-dev
  libcc1-0 libcilkrts5 libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3
  libmpx2 libquadmath0 libtsan0 libubsan0 linux-libc-dev manpages manpages-dev
Suggested packages:
  binutils-doc cpp-doc gcc-6-locales gcc-multilib autoconf automake libtool
  flex bison gdb gcc-doc gcc-6-multilib gcc-6-doc libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan3-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg glibc-doc
  make-doc man-browser
The following NEW packages will be installed:
  binutils cpp cpp-6 gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev
  libcc1-0 libcilkrts5 libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3
  libmpx2 libquadmath0 libtsan0 libubsan0 linux-libc-dev make manpages
  manpages-dev
The following packages will be upgraded:
  libc6
1 upgraded, 25 newly installed, 0 to remove and 102 not upgraded.
Need to get 29.4 MB of archives.
After this operation, 109 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://pl.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 libc6 amd64 2.24-3ubuntu2
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:2 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libmpc3 amd64 1.0.3-1
  Temporary failure resolving 'pl.archive.ubuntu.com'
Ign:3 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 manpages all 4.07-1
Err:4 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 binutils amd64 2.27-8ubuntu2
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:5 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libisl15 amd64 0.17.1-1
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:6 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 cpp-6 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:7 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 cpp amd64 4:6.1.1-1ubuntu2
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:8 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libcc1-0 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:9 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libgomp1 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:10 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libitm1 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:11 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libatomic1 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:12 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libasan3 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:13 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 liblsan0 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:14 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libtsan0 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:15 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libubsan0 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:16 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libcilkrts5 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:17 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libmpx2 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:18 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libquadmath0 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:19 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 libgcc-6-dev amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:20 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 gcc-6 amd64 6.2.0-5ubuntu12
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:21 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 gcc amd64 4:6.1.1-1ubuntu2
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:22 http://pl.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 libc-dev-bin amd64 2.24-3ubuntu2
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:23 http://pl.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 linux-libc-dev amd64 4.8.0-44.47
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:24 http://pl.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 libc6-dev amd64 2.24-3ubuntu2
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:25 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 make amd64 4.1-9
  Temporary failure resolving 'pl.archive.ubuntu.com'
Ign:26 http://pl.archive.ubuntu.com/ubuntu yakkety/main amd64 manpages-dev all 4.07-1
Err:3 http://pl.archive.ubuntu.com/ubuntu yakkety/main i386 manpages all 4.07-1
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:26 http://pl.archive.ubuntu.com/ubuntu yakkety/main i386 manpages-dev all 4.07-1
  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.24-3ubuntu2_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/m/mpclib3/libmpc3_1.0.3-1_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/m/manpages/manpages_4.07-1_all.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.27-8ubuntu2_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/i/isl/libisl15_0.17.1-1_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/cpp-6_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/cpp_6.1.1-1ubuntu2_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libcc1-0_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libgomp1_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libitm1_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libatomic1_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libasan3_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/liblsan0_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libtsan0_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libubsan0_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libcilkrts5_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libmpx2_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libquadmath0_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/libgcc-6-dev_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-6/gcc-6_6.2.0-5ubuntu12_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/gcc_6.1.1-1ubuntu2_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.24-3ubuntu2_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.8.0-44.47_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.24-3ubuntu2_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_4.1-9_amd64.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/pool/main/m/manpages/manpages-dev_4.07-1_all.deb  Temporary failure resolving 'pl.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Próbowałem apt-get update które również sypie podobnymi błędami.

root@vm:~# apt-get update
Err:1 http://security.ubuntu.com/ubuntu yakkety-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:2 http://pl.archive.ubuntu.com/ubuntu yakkety InRelease
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:3 http://pl.archive.ubuntu.com/ubuntu yakkety-updates InRelease
  Temporary failure resolving 'pl.archive.ubuntu.com'
Err:4 http://pl.archive.ubuntu.com/ubuntu yakkety-backports InRelease
  Temporary failure resolving 'pl.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease  Temporary failure resolving 'pl.archive.ubuntu.com'
W: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/dists/yakkety-updates/InRelease  Temporary failure resolving 'pl.archive.ubuntu.com'
W: Failed to fetch http://pl.archive.ubuntu.com/ubuntu/dists/yakkety-backports/InRelease  Temporary failure resolving 'pl.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/yakkety-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Jeżeli to coś zmienia to system postawiony jest na VirtualBoxie. Instalowałem ten system w identyczny sposób na innej maszynie i również na VirtualBoxie i tam ten problem nie występuje. Jakieś pomysły?

Offline Paweł Kraszewski

  • Administrator
  • Guru
  • *****
  • Wiadomości: 3049
  • Lenistwo jest matką potrzeby = babcią wynalazku
    • Zobacz profil
Odp: Ubuntu Server - problem z instalacją pakietów
« Odpowiedź #1 dnia: 2017-03-29, 14:43:25 »
Nie/źle skonfigurowana sieć. Albo po stronie VB albo po stronie Ubuntu - tego nie wiem.
Paweł Kraszewski
~Arch/Void/Gentoo/FreeBSD/OpenBSD/Specjalizowane customy