arm64 server from 19.10 upgrade to 20.04 failed

Asked by Lindroos Hsu on 2021-02-16

I tried to do the version upgrade as the title said.

while doing this command:

sudo do-release-upgrade --mode='server'

it will output as below

--------------------------------------------

Get:1 Upgrade tool signature [1,554 B]
Get:2 Upgrade tool [1,341 kB]
Fetched 1,343 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
E:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages
404 Not Found [IP: 91.189.88.142 80], E:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages
404 Not Found [IP: 91.189.88.142 80], E:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/focal-backports/universe/binary-arm64/Packages
404 Not Found [IP: 91.189.88.142 80], E:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages
404 Not Found [IP: 91.189.88.142 80], E:Some index files failed to
download. They have been ignored, or old ones used instead.

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command detached from window (Tue Feb 16 08:02:17 2021) ===
=== Command terminated with exit status 1 (Tue Feb 16 08:02:27 2021) ===

--------------------------------------------

then I try to access the URL which shows 404
http://archive.ubuntu.com/ubuntu/ubuntu/dists/focal/

there does not contain any binary-arm64 folder,
but the release note said there should be

 ddf39beb27be5008fcdcb134eb8ec91f 95 main/binary-arm64/Release
 b1524b8a6c921c458f707cfe757b9faf 5623676 main/binary-arm64/Packages
 dd5faa5b49de3a4ab3a35280ec3e80e6 940188 main/binary-arm64/Packages.xz
 74191269978b493bad1cbf32e0a0cce1 1234314 main/binary-arm64/Packages.gz

please help,
thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2021-02-16
Last query:
2021-02-16
Last reply:
2021-02-16
Best Manfred Hampl (m-hampl) said : #1

The archive.ubuntu.com repository server contains only the packages for amd64 and i386 architecture.
The packages for other processor architectures are on the ports.ubuntu.com server.

The problem that you see is not related to a release upgrade, but your package management system seems to be wrongly configured such that even a normal package update does not work.

What is the output of the commands

uname -a
lsb_release -crid
dpkg --print-architecture
dpkg --print-foreign-architectures
sudo apt update
cat -n /etc/apt/sources.list

Lindroos Hsu (tommady) said : #2

uname -a
Linux worker-node-2 5.3.0-1030-raspi2 #32-Ubuntu SMP Sun Jul 12 21:20:28 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan

dpkg --print-architecture
arm64

dpkg --print-foreign-architectures
(no output)

sudo apt update
Hit:1 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Hit:2 http://old-releases.ubuntu.com/ubuntu eoan InRelease
Hit:3 http://old-releases.ubuntu.com/ubuntu eoan-updates InRelease
Hit:4 http://old-releases.ubuntu.com/ubuntu eoan-backports InRelease
Hit:5 http://old-releases.ubuntu.com/ubuntu eoan-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

cat -n /etc/apt/sources.list
     1 ## Note, this file is written by cloud-init on first boot of an instance
     2 ## modifications made here will not survive a re-bundle.
     3 ## if you wish to make changes you can:
     4 ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
     5 ## or do the same in user-data
     6 ## b.) add sources in /etc/apt/sources.list.d
     7 ## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
     8
     9 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    10 # newer versions of the distribution.
    11 deb http://old-releases.ubuntu.com/ubuntu eoan main restricted
    12 # deb-src http://old-releases.ubuntu.com/ubuntu eoan main restricted
    13
    14 ## Major bug fix updates produced after the final release of the
    15 ## distribution.
    16 deb http://old-releases.ubuntu.com/ubuntu eoan-updates main restricted
    17 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-updates main restricted
    18
    19 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    20 ## team. Also, please note that software in universe WILL NOT receive any
    21 ## review or updates from the Ubuntu security team.
    22 deb http://old-releases.ubuntu.com/ubuntu eoan universe
    23 # deb-src http://old-releases.ubuntu.com/ubuntu eoan universe
    24 deb http://old-releases.ubuntu.com/ubuntu eoan-updates universe
    25 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-updates universe
    26
    27 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    28 ## team, and may not be under a free licence. Please satisfy yourself as to
    29 ## your rights to use the software. Also, please note that software in
    30 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    31 ## security team.
    32 deb http://old-releases.ubuntu.com/ubuntu eoan multiverse
    33 # deb-src http://old-releases.ubuntu.com/ubuntu eoan multiverse
    34 deb http://old-releases.ubuntu.com/ubuntu eoan-updates multiverse
    35 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-updates multiverse
    36
    37 ## N.B. software from this repository may not have been tested as
    38 ## extensively as that contained in the main release, although it includes
    39 ## newer versions of some applications which may provide useful features.
    40 ## Also, please note that software in backports WILL NOT receive any review
    41 ## or updates from the Ubuntu security team.
    42 deb http://old-releases.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse
    43 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse
    44
    45 ## Uncomment the following two lines to add software from Canonical's
    46 ## 'partner' repository.
    47 ## This software is not part of Ubuntu, but is offered by Canonical and the
    48 ## respective vendors as a service to Ubuntu users.
    49 # deb http://archive.canonical.com/ubuntu eoan partner
    50 # deb-src http://archive.canonical.com/ubuntu eoan partner
    51
    52 deb http://old-releases.ubuntu.com/ubuntu eoan-security main restricted
    53 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-security main restricted
    54 deb http://old-releases.ubuntu.com/ubuntu eoan-security universe
    55 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-security universe
    56 deb http://old-releases.ubuntu.com/ubuntu eoan-security multiverse
    57 deb http://apt.kubernetes.io/ kubernetes-xenial main
    58 # deb-src http://apt.kubernetes.io/ kubernetes-xenial main
    59 # deb-src http://old-releases.ubuntu.com/ubuntu eoan-security multiverse

Lindroos Hsu (tommady) said : #4

thank you Manfred Hampl, you mentioned a very important point,
arm64 is under ports.ubuntu.com domain name

so I change back the source.list from old-release.ubuntu.com to ports.ubuntu.com

then its success.

thanks again!

Lindroos Hsu (tommady) said : #5

Thanks Manfred Hampl, that solved my question.