LINUX.ORG.RU
ФорумAdmin

Ubuntu apt errors in LXC containers

 , ,


0

2

Настроил бридж к физическому интерфейсу, чтоб каждый контейнер работал в той же сети как и хост, сеть отлично работает. Но apt часто выдает ошибки типа:

# sudo apt-get update
...
Get:27 http://archive.ubuntu.com wily-updates/universe Translation-en [29.6 kB]
Err http://archive.ubuntu.com wily/universe amd64 Packages                                                       
  
Err http://archive.ubuntu.com wily/universe amd64 Packages                                                       
  404  Not Found [IP: 91.189.91.24 80]
Fetched 14.6 MB in 8s (1710 kB/s)                                                                                
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

Причем http://archive.ubuntu.com/ubuntu/dists/wily/universe/binary-amd64/Packages.bz2 качается с контейнера отлично.

Установка некоторых пакетов в контейнерах сопровождается такими вот ошибками:

root@test:~# apt-get install mc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libglib2.0-0 libglib2.0-data libicu55 libssh2-1 libxml2 mc-data sgml-base shared-mime-info unzip xdg-user-dirs
  xml-core
Suggested packages:
  arj catdvi texlive-binaries dbview djvulibre-bin genisoimage gv imagemagick links w3m lynx odt2txt
  poppler-utils python python-boto python-tz xpdf pdf-viewer zip sgml-base-doc debhelper
The following NEW packages will be installed:
  libglib2.0-0 libglib2.0-data libicu55 libssh2-1 libxml2 mc mc-data sgml-base shared-mime-info unzip
  xdg-user-dirs xml-core
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 7652 kB/11.9 MB of archives.
After this operation, 50.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ wily/main libicu55 amd64 55.1-4ubuntu1 [7652 kB]
Fetched 7652 kB in 1s (4887 kB/s)   
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-4ubuntu1_amd64.deb  Hash Sum mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Вот описал свою проблему детально https://github.com/lxc/lxc/issues/744 . Никто не сталкивался с подобным?

PS. Это пробовал http://askubuntu.com/a/41618/217142

★★★★★

Ответ на: комментарий от darkenshvein

Нет. Пробовал даже mirror http://askubuntu.com/a/37754

Но проблема еще в том что я хочу примером настроить установку эластиксерча через официальный репозиторий https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-reposit..., но а проблема все та же - Hash Sum mismatch

ipeacocks ★★★★★ ()
Ответ на: комментарий от drsm
root@pmaster:~# netstat -s
Ip:
    48237 total packets received
    3 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    48190 incoming packets delivered
    25747 requests sent out
Icmp:
    2 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
        echo replies: 2
    2 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        echo request: 2
IcmpMsg:
        InType0: 2
        OutType8: 2
Tcp:
    8 active connections openings
    0 passive connection openings
    0 failed connection attempts
    0 connection resets received
    0 connections established
    48149 segments received
    25727 segments send out
    0 segments retransmited
    0 bad segments received.
    0 resets sent
Udp:
    18 packets received
    0 packets to unknown port received.
    0 packet receive errors
    18 packets sent
    IgnoredMulti: 21
UdpLite:
TcpExt:
    6 TCP sockets finished time wait in fast timer
    13 delayed acks sent
    1 delayed acks further delayed because of locked socket
    45208 packet headers predicted
    9 acknowledgments not containing data payload received
    TCPRcvCoalesce: 21410
    TCPOFOQueue: 2653
    TCPOrigDataSent: 116
IpExt:
    InBcastPkts: 21
    InOctets: 72121549
    OutOctets: 1401891
    InBcastOctets: 3843
    InNoECTPkts: 48237
root@pmaster:~# 
ipeacocks ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.