модернизация неприятностей - proUbuntu
1 голос
/

Я пытаюсь обновить с:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial

и попробовал $ sudo do-release-upgrade но получил Please install all available updates for your release before upgrading. Так что я попробовал это и выполнил sudo apt-get -u dist-upgrade, он загрузил кучу пакетов и затем показал что-токак:

2515 upgraded, 852 newly installed, 85 to remove and 1 not upgraded.

Need to get 3,631 kB/1,971 MB of archives.
After this operation, 2,626 MB of additional disk space will be used.
Get:1 http://cz.archive.ubuntu.com/ubuntu disco/main amd64 nmap-common all 7.70+dfsg1-6 [3,631 kB]
Err:1 http://cz.archive.ubuntu.com/ubuntu disco/main i386 nmap-common all 7.70+dfsg1-6
  Hash Sum mismatch
Get:1 http://cz.archive.ubuntu.com/ubuntu disco/main i386 nmap-common all 7.70+dfsg1-6 [3,631 kB]
Err:1 http://cz.archive.ubuntu.com/ubuntu disco/main i386 nmap-common all 7.70+dfsg1-6
  Hash Sum mismatch
Fetched 20.7 kB in 9s (2,256 B/s)
E: Failed to fetch https://captcha.gecirtnotification.com/pitc/?url=http://cz.archive.ubuntu.com:80/ubuntu/pool/main/n/nmap/nmap-common_7.70%2bdfsg1-6_all.deb&referer=&reason=Trojan&reasoncode=AV_AUTHENTIUM_VIRUS_SW_MW_BLOCK&timebound=1&action=deny&kind=antivirus&rule=&cat=Science+Tech&user=212757197@ge.com&lang=en_US&zsq=VPQQvqF5RWn2fvVNjRqtqmV2JFJPQQvqB11D33fzsq Hash Sum mismatch

Затем я попробовал apt-get update, sudo apt install -f и sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade, но не получил дальнейших действий ... как мне лучше перейти к обновлению моего дистрибутива?

Спасибо!

Обновление, пытающееся следовать инструкциям в комментариях @ user535733

Я попытался действовать в соответствии с рекомендациями в комментариях, но яповорот в кругах: sudo apt full-upgrade выдает ошибку, которая выглядит следующим образом:

$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 apt-xapian-index : Depends: python3-xapian (>= 1.4.3-1)
 cmake : Depends: cmake-data (= 3.5.1-1ubuntu3) but 3.13.4-1 is installed
 libcairo2-dev:i386 : Depends: libfontconfig1-dev:i386 (>= 2.2.95) but it is not installed
 libglib2.0-bin : Depends: libglib2.0-0 (= 2.60.0-1) but 2.48.2-0ubuntu4.4 is installed
 libglib2.0-dev:i386 : Depends: libglib2.0-bin:i386 (= 2.48.2-0ubuntu4.4)
 python3 : PreDepends: python3-minimal (= 3.5.1-3) but 3.7.3-1 is installed
           Depends: libpython3-stdlib (= 3.5.1-3) but 3.7.3-1 is installed
 python3-apt : Depends: python3 (>= 3.7~) but 3.5.1-3 is installed
 python3-brlapi : Depends: python3 (>= 3.7~) but 3.5.1-3 is installed
 python3-dev : Depends: python3 (= 3.7.3-1) but 3.5.1-3 is installed
 python3-distutils : Depends: python3 (>= 3.7.1-1~) but 3.5.1-3 is installed
 python3-lib2to3 : Depends: python3 (>= 3.7.1-1~) but 3.5.1-3 is installed
 python3-libapparmor : Depends: python3 (>= 3.7~) but 3.5.1-3 is installed
 python3-lxml : Depends: python3 (>= 3.7~) but 3.5.1-3 is installed
 python3-pil : Depends: python3 (>= 3.7~) but 3.5.1-3 is installed
               Recommends: python3-olefile but it is not installed
 testdrive-common : Depends: qemu-kvm or
                             kvm (>= 1:84+dfsg-0ubuntu12.4) or
                             virtualbox (>= 4.0) but it is not installed
                    Recommends: kvm-pxe but it is not installable
 virtualbox-ext-pack : Depends: virtualbox (< 5.1.38-dfsg-z) but it is not installed or
                                virtualbox-5.1 but it is not installable
                       Depends: virtualbox (>= 5.1.38-dfsg-0~) but it is not installed or
                                virtualbox-5.1 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Затем sudo apt fix-broken install перечисляет 100 пакетов для установки, я подтверждаю с помощью Y и получаю это:

266 upgraded, 106 newly installed, 604 to remove and 1647 not upgraded.
74 not fully installed or removed.
Need to get 0 B/131 MB of archives.
After this operation, 669 MB disk space will be freed.
Do you want to continue? [Y/n]
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 367146 files and directories currently installed.)
Preparing to unpack .../python3-xapian_1.4.10-1_amd64.deb ...
Unpacking python3-xapian (1.4.10-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-xapian_1.4.10-1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/xapian/__init__.py', which is also in package python3-xapian1.3 1.3.4-0ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python3-xapian_1.4.10-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ron@jpax-build07:~/scripts$

Я попытался избавиться от этого python3-xapian пакета, так как я не знаю, почему он был установлен, но именно здесь начинается круг, мне все время говорят, что нужно выполнить fix-missing ...

Затем я попытался удалить пакет python3-xapian1.3 с помощью dpkg, но получил:

$ sudo dpkg -r python3-xapian1.3
[sudo] password for ron:
dpkg: dependency problems prevent removal of python3-xapian1.3:
 apt-xapian-index depends on python3-xapian (>= 1.4.3-1); however:
  Package python3-xapian is not installed.
  Package python3-xapian1.3 which provides python3-xapian is to be removed.

dpkg: error processing package python3-xapian1.3 (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 python3-xapian1.3

Как мне продолжить?

my/etc/apt/sources.list:

$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
#deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
#deb http://cz.archive.ubuntu.com/ubuntu disco main universe
...