upgrade from 21.10 to 22.04

Asked by sameer

I am trying to upgrade a vm which is managed by puppet from ubuntu 21.10 to 22.04 and I have the error when doing apt update ...
Ign:1 http://security.ubuntu.com/ubuntu impish-security InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu impish InRelease
Err:3 http://security.ubuntu.com/ubuntu impish-security Release
  404 Not Found [IP: 192.16.... 3142]
Ign:4 http://us.archive.ubuntu.com/ubuntu impish-updates InRelease
Err:5 http://us.archive.ubuntu.com/ubuntu impish Release
  404 Not Found [IP: 192.16....3142]
Err:6 http://us.archive.ubuntu.com/ubuntu impish-updates Release
  404 Not Found [IP: 192.16.....3142]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu impish Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu impish-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

and when i ran do-release-upgrade -d
Upgrades to the development release are only
available from the latest supported release.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Probably a network problem.

Try again, whether it works now.
Can you access the web page http://security.ubuntu.com/ubuntu with your web browser?

Revision history for this message
Bernard Stafford (bernard010) said :
#2

Ubuntu 21.10 Impish EOL: July 14 2022 that is why it no longer has a release file.

Revision history for this message
sameer (mfaheem5697) said :
#3

I had to make changes in /etc/apt/source.list by updating impish with jammy and it worked

Revision history for this message
Bernard Stafford (bernard010) said :
#4

Excellent

Revision history for this message
sameer (mfaheem5697) said :
#5

Hi Bernard Stafford

I could upgrade the system but one of our website is down and also apt update doesn't get updated and throws an error
Could you please help in fixing this
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [509 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [121 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [7,368 B]
Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [276 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [22.1 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [42.5 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [524 B]
Get:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [274 kB]
Err:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
  File has unexpected size (274912 != 273572). Mirror sync in progress? [IP: 192.168.1.41 3142]
  Hashes of expected file:
   - Filesize:273572 [weak]
   - SHA256:8785eac8da69a1a9c8ae78b215821c7995c3f1244734b5a00611f552bed89fd0
   - SHA1:91861c9237eab3bddcebb997f03c6f369357d36b [weak]
   - MD5Sum:bb04b807c48d5ef166797cb490d5748d [weak]
  Release file created at: Fri, 19 Aug 2022 07:30:27 +0000
Fetched 114 kB in 1s (200 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-i386/Packages.xz File has unexpected size (274912 != 273572). Mirror sync in progress? [IP: 192.168.1.41 3142]
   Hashes of expected file:
    - Filesize:273572 [weak]
    - SHA256:8785eac8da69a1a9c8ae78b215821c7995c3f1244734b5a00611f552bed89fd0
    - SHA1:91861c9237eab3bddcebb997f03c6f369357d36b [weak]
    - MD5Sum:bb04b807c48d5ef166797cb490d5748d [weak]
   Release file created at: Fri, 19 Aug 2022 07:30:27 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

If you repeat the command, do you still get the same size and hash difference messages?

Revision history for this message
sameer (mfaheem5697) said :
#7

yes its exactly same

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#8

I suggest that you temporarily switch from the US repository server to the central server.

Either use software-properties-gtk to change the repository server, or edit the file /etc/apt/sources.list and change "//us.archive.ubuntu.com" to "//archive.ubuntu.com" and then try the "apt update" command again.

Revision history for this message
sameer (mfaheem5697) said :
#9

same error even after changing

Err:12 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
  File has unexpected size (274912 != 273572). Mirror sync in progress? [IP: 192.168.1.41 3142]
  Hashes of expected file:
   - Filesize:273572 [weak]
   - SHA256:8785eac8da69a1a9c8ae78b215821c7995c3f1244734b5a00611f552bed89fd0
   - SHA1:91861c9237eab3bddcebb997f03c6f369357d36b [weak]
   - MD5Sum:bb04b807c48d5ef166797cb490d5748d [weak]

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

It seems that there is a general problem with the repository servers on Ubuntu.
I guess you just have to wait that it gets solved, which hopefully will not take longer than a few hours.

Revision history for this message
sameer (mfaheem5697) said (last edit ):
#11

anything else i can do to get the update run as i need to install python3-pip which says no installation candidate...Due to this one of my website is down...This problem has been since 24hours

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

I doubt that this problem can cause the unavailability of python3-pip for that webserver.

What is the output of

lsb_release -crid
dpkg --print-architecture
sudo apt update
apt policy python3-pip

on that affected server?

Revision history for this message
sameer (mfaheem5697) said :
#13

Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

amd64

python3-pip:
  Installed: (none)
  Candidate: (none)
  Version table:

Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Ign:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [509 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [121 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [7,368 B]
Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [22.1 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [276 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [42.5 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [524 B]
Get:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [274 kB]
Err:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
  File has unexpected size (275588 != 273572). Mirror sync in progress? [IP: 192.168.1.41 3142]
  Hashes of expected file:
   - Filesize:273572 [weak]
   - SHA256:8785eac8da69a1a9c8ae78b215821c7995c3f1244734b5a00611f552bed89fd0
   - SHA1:91861c9237eab3bddcebb997f03c6f369357d36b [weak]
   - MD5Sum:bb04b807c48d5ef166797cb490d5748d [weak]
  Release file created at: Fri, 19 Aug 2022 07:30:27 +0000
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [97.3 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [267 kB]
Fetched 1,566 kB in 1s (2,768 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-i386/Packages.xz File has unexpected size (275588 != 273572). Mirror sync in progress? [IP: 192.168.1.41 3142]
   Hashes of expected file:
    - Filesize:273572 [weak]
    - SHA256:8785eac8da69a1a9c8ae78b215821c7995c3f1244734b5a00611f552bed89fd0
    - SHA1:91861c9237eab3bddcebb997f03c6f369357d36b [weak]
    - MD5Sum:bb04b807c48d5ef166797cb490d5748d [weak]
   Release file created at: Fri, 19 Aug 2022 07:30:27 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

python3-pip is in the universe repository, and that seems not to be enabled.

Revision history for this message
sameer (mfaheem5697) said :
#15

so how can that be done?

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

Either use software-properties-gtk to enable "universe" or edit the file /etc/apt/sources.list and add "universe" behind each occurrence of "restricted".

Revision history for this message
sameer (mfaheem5697) said :
#17

Ok...I was able to install python3-pip but the apt update error still remains same.....

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

Try the following

sudo rm -v /var/lib/apt/lists/partial/*
sudo rm -v /var/lib/apt/lists/*ubuntu*
sudo apt update

What is the output?

Revision history for this message
sameer (mfaheem5697) said :
#19

E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-i386/Packages.xz File has unexpected size (275656 != 273572). Mirror sync in progress? [IP: 192.168.1.41 3142]
   Hashes of expected file:
    - Filesize:273572 [weak]
    - SHA256:8785eac8da69a1a9c8ae78b215821c7995c3f1244734b5a00611f552bed89fd0
    - SHA1:91861c9237eab3bddcebb997f03c6f369357d36b [weak]
    - MD5Sum:bb04b807c48d5ef166797cb490d5748d [weak]
   Release file created at: Fri, 19 Aug 2022 07:30:27 +0000
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/binary-i386/Packages.xz
E: Some index files failed to download. They have been ignored, or old ones used instead.

Revision history for this message
sameer (mfaheem5697) said :
#20

Hi Manfred Hampl

Any update on this?

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

Have you tried again?

Revision history for this message
sameer (mfaheem5697) said :
#22

yes i have tried again and its same error.

Revision history for this message
Manfred Hampl (m-hampl) said :
#23

Are there the same file names and numbers in the new error message?

As already recommended earlier: switch to different repository servers.

A complete different approach would be disabling the i386 architecture, unless you need it for special purposes (e.g. 32bit programs with wine or steam).

And of course you could also create a bug report with the hope that the sync problem gets then solved faster.

Revision history for this message
Manfred Hampl (m-hampl) said :
#24

Did you verify whether the numbers are still the same as they were a week ago?
I would have expected to see 282248 instead of 273572 or 274912 or 275656 today.

Providing outdated information in the bug tracker may invalidate the whole bug report.

Revision history for this message
sameer (mfaheem5697) said :
#25

Instead of 275656 != 273572 it is 282576 != 273572 now

Revision history for this message
Manfred Hampl (m-hampl) said :
#26

That is what I meant.

The data in your bug report are inconsistent. You are mixing the information at different points in time.

Can you help with this problem?

Provide an answer of your own, or ask sameer for more information if necessary.

To post a message you must log in.