3

Пожалейте меня, я пытаюсь подняться по лестнице апгрейда с 10 по 16 апреля. Первый шаг - добраться до 12.04.

Я обновил мой /etc/apt/sources.list для использования old-releases:

## main & restricted repositories
deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid main restricted

deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted

deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main restricted

## universe repositories - uncomment to enable
deb http://old-releases.ubuntu.com/ubuntu/ lucid universe
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid universe

deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-updates universe

deb http://old-releases.ubuntu.com/ubuntu lucid-security universe
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security universe

apt-get update и apt-get upgrade отлично работают с этим изменением.

Тем не менее, когда я пытаюсь обновить до 12.04 через do-release-upgrade сбой со следующим выпуском (см. Ниже). Кажется подозрительным то, что он все еще пытается получить доступ к archive URL-адресам вместо old-releases . Должны ли это быть old-releases? Есть ли способ заставить систему искать там вместо archive?

$ do-release-upgrade

WARNING:root:estimate_kernel_size_in_boot() returned '0'?

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
WARNING: Failed to read mirror file
Ign http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid Release.gpg
Hit http://old-releases.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com lucid-updates Release
Hit http://old-releases.ubuntu.com lucid Release
Hit http://old-releases.ubuntu.com lucid-updates Release
Ign http://archive.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid-security Release
Ign http://archive.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid/main Packages
Hit http://old-releases.ubuntu.com lucid/restricted Packages
Hit http://old-releases.ubuntu.com lucid/main Sources
Hit http://old-releases.ubuntu.com lucid/restricted Sources
Hit http://old-releases.ubuntu.com lucid/universe Packages
Hit http://old-releases.ubuntu.com lucid/universe Sources
Hit http://old-releases.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid-updates/restricted Packages
Hit http://old-releases.ubuntu.com lucid-updates/main Sources
Hit http://old-releases.ubuntu.com lucid-updates/restricted Sources
Err http://archive.ubuntu.com lucid-updates/main Packages
  404  Not Found [IP: 91.189.88.149 80]
Hit http://old-releases.ubuntu.com lucid-updates/universe Packages
Hit http://old-releases.ubuntu.com lucid-updates/universe Sources
Hit http://old-releases.ubuntu.com lucid-security/main Packages
Hit http://old-releases.ubuntu.com lucid-security/restricted Packages   
Hit http://old-releases.ubuntu.com lucid-security/main Sources
Hit http://old-releases.ubuntu.com lucid-security/restricted Sources
Hit http://old-releases.ubuntu.com lucid-security/universe Packages
Hit http://old-releases.ubuntu.com lucid-security/universe Sources
Fetched 0B in 0s (0B/s)
ERROR:root:IOError/SystemError in cache.update(): 'W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.149 80]
, E:Some index files failed to download, they have been ignored, or old ones used instead.'. Retrying (currentRetry: 0)
Hit http://old-releases.ubuntu.com lucid Release.gpg
Hit http://old-releases.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid Release
Hit http://old-releases.ubuntu.com lucid-updates Release
Ign http://archive.ubuntu.com lucid-updates Release
Hit http://old-releases.ubuntu.com lucid-security Release
Ign http://archive.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid/main Packages
Hit http://old-releases.ubuntu.com lucid/restricted Packages
Hit http://old-releases.ubuntu.com lucid/main Sources
Hit http://old-releases.ubuntu.com lucid/restricted Sources
Hit http://old-releases.ubuntu.com lucid/universe Packages
Hit http://old-releases.ubuntu.com lucid/universe Sources
Hit http://old-releases.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid-updates/restricted Packages
Hit http://old-releases.ubuntu.com lucid-updates/main Sources
Hit http://old-releases.ubuntu.com lucid-updates/restricted Sources
Ign http://archive.ubuntu.com lucid-updates/main Packages
Err http://archive.ubuntu.com lucid-updates/main Packages
  404  Not Found [IP: 91.189.88.149 80]
Hit http://old-releases.ubuntu.com lucid-updates/universe Packages
Hit http://old-releases.ubuntu.com lucid-updates/universe Sources
Hit http://old-releases.ubuntu.com lucid-security/main Packages
Hit http://old-releases.ubuntu.com lucid-security/restricted Packages   
Hit http://old-releases.ubuntu.com lucid-security/main Sources
Hit http://old-releases.ubuntu.com lucid-security/restricted Sources
Hit http://old-releases.ubuntu.com lucid-security/universe Packages
Hit http://old-releases.ubuntu.com lucid-security/universe Sources
Fetched 0B in 0s (0B/s)
ERROR:root:IOError/SystemError in cache.update(): 'W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.149 80]
, E:Some index files failed to download, they have been ignored, or old ones used instead.'. Retrying (currentRetry: 1)
Ign http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid Release.gpg
Hit http://old-releases.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com lucid-updates Release
Hit http://old-releases.ubuntu.com lucid Release
Hit http://old-releases.ubuntu.com lucid-updates Release
Ign http://archive.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid-security Release
Ign http://archive.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid/main Packages
Hit http://old-releases.ubuntu.com lucid/restricted Packages
Hit http://old-releases.ubuntu.com lucid/main Sources
Hit http://old-releases.ubuntu.com lucid/restricted Sources
Hit http://old-releases.ubuntu.com lucid/universe Packages
Hit http://old-releases.ubuntu.com lucid/universe Sources
Hit http://old-releases.ubuntu.com lucid-updates/main Packages
Hit http://old-releases.ubuntu.com lucid-updates/restricted Packages
Hit http://old-releases.ubuntu.com lucid-updates/main Sources
Hit http://old-releases.ubuntu.com lucid-updates/restricted Sources
Err http://archive.ubuntu.com lucid-updates/main Packages
  404  Not Found [IP: 91.189.88.149 80]
Hit http://old-releases.ubuntu.com lucid-updates/universe Packages
Hit http://old-releases.ubuntu.com lucid-updates/universe Sources
Hit http://old-releases.ubuntu.com lucid-security/main Packages
Hit http://old-releases.ubuntu.com lucid-security/restricted Packages   
Hit http://old-releases.ubuntu.com lucid-security/main Sources
Hit http://old-releases.ubuntu.com lucid-security/restricted Sources
Hit http://old-releases.ubuntu.com lucid-security/universe Packages
Hit http://old-releases.ubuntu.com lucid-security/universe Sources
Fetched 0B in 0s (0B/s)
ERROR:root:IOError/SystemError in cache.update(): 'W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.88.149 80]
, E:Some index files failed to download, they have been ignored, or old ones used instead.'. Retrying (currentRetry: 2)
ERROR:root:doUpdate() failed completely
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Fetched 0B in 0s (0B/s)
WARNING:root:estimate_kernel_size_in_boot() returned '0'?

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Ign http://old-releases.ubuntu.com lucid InRelease
Ign http://old-releases.ubuntu.com lucid-updates InRelease
Ign http://old-releases.ubuntu.com lucid-security InRelease
Hit http://old-releases.ubuntu.com lucid Release.gpg
Hit http://old-releases.ubuntu.com lucid-updates Release.gpg
Hit http://old-releases.ubuntu.com lucid-security Release.gpg
Hit http://old-releases.ubuntu.com lucid Release
Hit http://old-releases.ubuntu.com lucid-updates Release
Hit http://old-releases.ubuntu.com lucid-security Release
Hit http://old-releases.ubuntu.com lucid/main Sources
Hit http://old-releases.ubuntu.com lucid/restricted Sources
Hit http://old-releases.ubuntu.com lucid/universe Sources
Hit http://old-releases.ubuntu.com lucid/main i386 Packages
Hit http://old-releases.ubuntu.com lucid/restricted i386 Packages
Hit http://old-releases.ubuntu.com lucid/universe i386 Packages
Ign http://old-releases.ubuntu.com lucid/main TranslationIndex
Ign http://old-releases.ubuntu.com lucid/restricted TranslationIndex
Ign http://old-releases.ubuntu.com lucid/universe TranslationIndex
Hit http://old-releases.ubuntu.com lucid-updates/main Sources
Hit http://old-releases.ubuntu.com lucid-updates/restricted Sources
Hit http://old-releases.ubuntu.com lucid-updates/universe Sources
Hit http://old-releases.ubuntu.com lucid-updates/main i386 Packages
Hit http://old-releases.ubuntu.com lucid-updates/restricted i386 Packages
Hit http://old-releases.ubuntu.com lucid-updates/universe i386 Packages 
Hit http://old-releases.ubuntu.com lucid-updates/main TranslationIndex  
Hit http://old-releases.ubuntu.com lucid-updates/restricted TranslationIndex
Hit http://old-releases.ubuntu.com lucid-updates/universe TranslationIndex
Hit http://old-releases.ubuntu.com lucid-security/main Sources
Hit http://old-releases.ubuntu.com lucid-security/restricted Sources
Hit http://old-releases.ubuntu.com lucid-security/universe Sources
Hit http://old-releases.ubuntu.com lucid-security/main i386 Packages
Hit http://old-releases.ubuntu.com lucid-security/restricted i386 Packages
Hit http://old-releases.ubuntu.com lucid-security/universe i386 Packages
Ign http://old-releases.ubuntu.com lucid-security/main TranslationIndex 
Ign http://old-releases.ubuntu.com lucid-security/restricted TranslationIndex
Ign http://old-releases.ubuntu.com lucid-security/universe TranslationIndex
Err http://old-releases.ubuntu.com lucid/main Translation-en

Err http://old-releases.ubuntu.com lucid/restricted Translation-en

Err http://old-releases.ubuntu.com lucid/universe Translation-en

Err http://old-releases.ubuntu.com lucid-security/main Translation-en   

Err http://old-releases.ubuntu.com lucid-security/restricted Translation-en

Err http://old-releases.ubuntu.com lucid-security/universe Translation-en

Err http://old-releases.ubuntu.com lucid/main Translation-en

Err http://old-releases.ubuntu.com lucid/restricted Translation-en

Err http://old-releases.ubuntu.com lucid/universe Translation-en

Err http://old-releases.ubuntu.com lucid-security/main Translation-en   

Err http://old-releases.ubuntu.com lucid-security/restricted Translation-en

Err http://old-releases.ubuntu.com lucid-security/universe Translation-en

Err http://old-releases.ubuntu.com lucid/main Translation-en

Err http://old-releases.ubuntu.com lucid/restricted Translation-en

Err http://old-releases.ubuntu.com lucid/universe Translation-en

Err http://old-releases.ubuntu.com lucid-security/main Translation-en 


Err http://old-releases.ubuntu.com lucid-security/restricted Translation-en

Err http://old-releases.ubuntu.com lucid-security/universe Translation-en

Err http://old-releases.ubuntu.com lucid/main Translation-en

Err http://old-releases.ubuntu.com lucid/restricted Translation-en

Err http://old-releases.ubuntu.com lucid/universe Translation-en

Err http://old-releases.ubuntu.com lucid-security/main Translation-en   

Err http://old-releases.ubuntu.com lucid-security/restricted Translation-en

Err http://old-releases.ubuntu.com lucid-security/universe Translation-en

Ign http://old-releases.ubuntu.com lucid/main Translation-en
Ign http://old-releases.ubuntu.com lucid/restricted Translation-en
Ign http://old-releases.ubuntu.com lucid/universe Translation-en
Ign http://old-releases.ubuntu.com lucid-security/main Translation-en   
Ign http://old-releases.ubuntu.com lucid-security/restricted Translation-en
Ign http://old-releases.ubuntu.com lucid-security/universe Translation-en
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

Updating repository information
WARNING: Failed to read mirror file
Ign http://archive.ubuntu.com precise InRelease
Get:1 http://archive.ubuntu.com precise-updates InRelease [55.7 kB]
Get:2 http://archive.ubuntu.com precise-security InRelease [55.7 kB]
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Ign http://archive.ubuntu.com precise-updates/main Sources/DiffIndex
Ign http://archive.ubuntu.com precise-updates/restricted Sources/DiffIndex
Ign http://archive.ubuntu.com precise-updates/universe Sources/DiffIndex
Ign http://archive.ubuntu.com precise-updates/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-updates/restricted i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-updates/universe i386 Packages/DiffIndex
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex 
Ign http://archive.ubuntu.com precise-security/main Sources/DiffIndex   
Ign http://archive.ubuntu.com precise-security/restricted Sources/DiffIndex
Ign http://archive.ubuntu.com precise-security/universe Sources/DiffIndex
Ign http://archive.ubuntu.com precise-security/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-security/restricted i386 Packages/DiffIndex
Ign http://archive.ubuntu.com precise-security/universe i386 Packages/DiffIndex
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates/main Sources
Hit http://archive.ubuntu.com precise-updates/restricted Sources
Hit http://archive.ubuntu.com precise-updates/universe Sources
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en 
Hit http://archive.ubuntu.com precise-updates/universe Translation-en   
Hit http://archive.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com precise-security/restricted Sources
Hit http://archive.ubuntu.com precise-security/universe Sources
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/restricted i386 Packages 
Hit http://archive.ubuntu.com precise-security/universe i386 Packages   
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en  
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Fetched 111 kB in 0s (0 B/s)

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

Calculating the changes

Calculating the changes

Error authenticating some packages

It was not possible to authenticate some packages. This may be a
transient network problem. You may want to try again later. See below   
for a list of unauthenticated packages.

accountsservice
apache2
<snip, many packages>
vim-runtime
vim-tiny
wget
xkb-data

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
=== Command detached from window (Thu Jan 18 23:53:49 2018) ===
=== Command terminated with exit status 1 (Thu Jan 18 23:53:49 2018) ===

2 ответа2

2

Обратите внимание, что Ubuntu 10.04 не имеет поддержки, и прошло уже более 6 месяцев с момента окончания Ubuntu 12.04. Я предполагаю, что они уже закрыли большинство, если не все зеркала.

Поскольку за эти 7 лет произошли довольно серьезные изменения (файлы конфигурации, возможно, даже изменились!), Если вы хотите сохранить программы и конфигурации, я бы сделал следующее:

  1. Резервное копирование домашнего каталога и всех других каталогов, которые могут содержать программы и конфигурации (например, /etc, если вы настраиваете конфигурации вручную, ...)
  2. Сделайте чистую установку Ubuntu 16.04
  3. Загрузитесь с live CD /USB, смонтируйте жесткий диск и перезаписайте домой с помощью резервной копии.
  4. Проверьте, работает ли это.
  5. Если это работает, повторите 3-5. В противном случае перейдите к 6
  6. Debug. Возможно переустановите и скопируйте меньше файлов, чтобы устранить причину проблемы.
  7. Если вы работаете, вернитесь к 3. В противном случае вернитесь к 6.

Извините, но это будет очень болезненный и медленный процесс, если вы собираетесь сохранить программы и конфигурации.

Самый простой способ (как бы я это сделал):

  1. Сделайте резервную копию ваших документов, фотографий и т.д.
  2. Составьте список программ, которые у вас есть.
  3. Чистая установка Ubuntu 16.04.
  4. Переустановите программы и вручную восстановите ваши конфигурации
0

Обходной путь, который я нашел, состоит в том, что вы можете изменить свой файл /etc/hosts так, чтобы archive.ubuntu.com перенаправлял на тот же IP-адрес, что и old-releases.ubuntu.com что достаточно, чтобы сделать довольный do-release-upgrade достаточно счастливым.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .