Score:0

Unable to update ubuntu from 21.10 to 22.04 version

gt flag

I am trying to update my ubantu version from 21.10 to 22.04, for that i have to install currently availble updates. When i am running sudo apt update or sudo apt-get update i am getting undetermined error as follows:

Get:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease                      
Get:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease              
Get:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease            
Ign:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease                      
Ign:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease              
Ign:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease            
Hit:4 https://deb.nodesource.com/node_16.x focal InRelease                     
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease                         
Hit:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease                 
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Get:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
  Undetermined Error [IP: 192.168.1.1 80]
Err:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
  Undetermined Error [IP: 192.168.1.1 80]
Err:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
  Undetermined Error [IP: 192.168.1.1 80]
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Err:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
  Undetermined Error [IP: 192.168.1.1 80]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1940 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Undetermined Error [IP: 192.168.1.1 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Undetermined Error [IP: 192.168.1.1 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Undetermined Error [IP: 192.168.1.1 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Undetermined Error [IP: 192.168.1.1 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

When i try to run sudo apt upgrade or sudo apt-get upgrade

1890 upgraded, 76 newly installed, 0 to remove and 50 not upgraded.
207 standard security updates
Need to get 1,311 MB/2,009 MB of archives.
After this operation, 946 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

It showed me this window as follow: Partially updatable window

some packages got installed and some showed this error as follow:

Err:1741 http://in.archive.ubuntu.com/ubuntu jammy/universe amd64 libsixel1 amd64 1.10.3-3
  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
  Hashes of expected file:
   - SHA512:c476182c99f6f88fc1d648a12ec41741864ee8018368deeecb28aa949ba32d56b1af9236ad695c991b10f43df738424088fb2d45d6cc7924c1d673e0105196d9
   - SHA256:ef28327242ed49e1c77a070ced23fad258937b496f648211bd8a61e23ef08f5c
   - SHA1:1e40ce93b62e7e38baf248f0e315045e3364e3e2 [weak]
   - MD5Sum:0853cf59c24bb86a317ef80d33a2f515 [weak]
   - Filesize:110654 [weak]
Err:1742 http://in.archive.ubuntu.com/ubuntu jammy/universe amd64 libsixel-bin amd64 1.10.3-3
  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
  Hashes of expected file:
   - SHA512:db20423452f3779be43e359221151b5e4b79e5102ff7810a1dd76e7e31f7a541c9a7586de737c08257cf610287092762c94bf0fe2d67e64b223e851975f847fa
   - SHA256:fe9a51b2b9b5fb1d3a0eb6a245c6c7500a372e4ea9bd25cfa83c2749d7e593a3
   - SHA1:f5e5d76188a27c029530542023b58c0bae3a0e8f [weak]
   - MD5Sum:570270397cde85373e8208f9c44cab42 [weak]
   - Filesize:18484 [weak]
Err:1743 http://in.archive.ubuntu.com/ubuntu jammy/universe amd64 mesa-utils amd64 8.4.0-1ubuntu1
  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
  Hashes of expected file:
   - SHA512:35b3b58820f667f486084c9aa8936d1ae12785b004faa134c8ff9942dcd26e4b93623f946e2db85c7a877ed26e88c11d31569b040011a8ad09fbcc1efae475f5
   - SHA256:594182eec59fe136428e174b06cf3f98d55f83d342eee37504c5478ddf828dc2
   - SHA1:0c25b537e0c73a07b9dbbdcfbdb290784a4de510 [weak]
   - MD5Sum:c3c5c67df470198ebf06fc37edfcc9f3 [weak]
   - Filesize:1064536 [weak]
Ign:1744 http://in.archive.ubuntu.com/ubuntu jammy/main amd64 mobile-broadband-provider-info all 20220315-1
Ign:1745 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 mutter-common all 42.2-0ubuntu1
Err:1746 http://in.archive.ubuntu.com/ubuntu jammy/universe amd64 pocketsphinx-en-us all 0.8.0+real5prealpha+1-14ubuntu1
  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
  Hashes of expected file:
   - SHA512:c24404acdc1d3b7784e04f308a31ace5a3d4b0fb955083dad21006275e477f038d0e28fc2b50db321a1479a98adbb7aed479c8dcc3bce279a3c91d28a92d8aa6
   - SHA256:4fa57d7cd71fd8dd3a00f0de03f32071f84de75f78d093bd67b7cfc71350731d
   - SHA1:ffd0a022680a43466e18313725ad82166e8fffd6 [weak]
   - MD5Sum:19a460a3c201d21b1bbe30de39470fa5 [weak]
   - Filesize:27642780 [weak]
Err:1747 http://in.archive.ubuntu.com/ubuntu jammy/universe amd64 r-base-html all 4.1.2-1ubuntu2
  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
  Hashes of expected file:
   - SHA512:ebf994e5477cadfbfa1bee9ca711a379f7d2bf04698ebdf7cd3d140832416953f447da5a4a5858a46942324338ccf0b383feeb39ff3479953e8190b3ff242358
   - SHA256:e2a0c3a60a7c40458fb9c94842b26fc67bf3bd818a15f9aab1a0a60dcd2b63b8
   - SHA1:37245e495936ba805007649e7179fec0986461b3 [weak]
   - MD5Sum:7ba9f6c91cdba2abf1e496a2cc437b92 [weak]
   - Filesize:57192 [weak]

In the end terminal has these ending lines as follows:

E: Failed to fetch http://in.archive.ubuntu.com/login.asp  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
   Hashes of expected file:
    - SHA512:c476182c99f6f88fc1d648a12ec41741864ee8018368deeecb28aa949ba32d56b1af9236ad695c991b10f43df738424088fb2d45d6cc7924c1d673e0105196d9
    - SHA256:ef28327242ed49e1c77a070ced23fad258937b496f648211bd8a61e23ef08f5c
    - SHA1:1e40ce93b62e7e38baf248f0e315045e3364e3e2 [weak]
    - MD5Sum:0853cf59c24bb86a317ef80d33a2f515 [weak]
    - Filesize:110654 [weak]
E: Failed to fetch http://in.archive.ubuntu.com/login.asp  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
   Hashes of expected file:
    - SHA512:db20423452f3779be43e359221151b5e4b79e5102ff7810a1dd76e7e31f7a541c9a7586de737c08257cf610287092762c94bf0fe2d67e64b223e851975f847fa
    - SHA256:fe9a51b2b9b5fb1d3a0eb6a245c6c7500a372e4ea9bd25cfa83c2749d7e593a3
    - SHA1:f5e5d76188a27c029530542023b58c0bae3a0e8f [weak]
    - MD5Sum:570270397cde85373e8208f9c44cab42 [weak]
    - Filesize:18484 [weak]
E: Failed to fetch http://in.archive.ubuntu.com/login.asp  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
   Hashes of expected file:
    - SHA512:35b3b58820f667f486084c9aa8936d1ae12785b004faa134c8ff9942dcd26e4b93623f946e2db85c7a877ed26e88c11d31569b040011a8ad09fbcc1efae475f5
    - SHA256:594182eec59fe136428e174b06cf3f98d55f83d342eee37504c5478ddf828dc2
    - SHA1:0c25b537e0c73a07b9dbbdcfbdb290784a4de510 [weak]
    - MD5Sum:c3c5c67df470198ebf06fc37edfcc9f3 [weak]
    - Filesize:1064536 [weak]
E: Failed to fetch http://in.archive.ubuntu.com/login.asp  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
   Hashes of expected file:
    - SHA512:c24404acdc1d3b7784e04f308a31ace5a3d4b0fb955083dad21006275e477f038d0e28fc2b50db321a1479a98adbb7aed479c8dcc3bce279a3c91d28a92d8aa6
    - SHA256:4fa57d7cd71fd8dd3a00f0de03f32071f84de75f78d093bd67b7cfc71350731d
    - SHA1:ffd0a022680a43466e18313725ad82166e8fffd6 [weak]
    - MD5Sum:19a460a3c201d21b1bbe30de39470fa5 [weak]
    - Filesize:27642780 [weak]
E: Failed to fetch http://in.archive.ubuntu.com/login.asp  File has unexpected size (1356 != 780). Mirror sync in progress? [IP: 192.168.1.1 80]
   Hashes of expected file:
    - SHA512:ebf994e5477cadfbfa1bee9ca711a379f7d2bf04698ebdf7cd3d140832416953f447da5a4a5858a46942324338ccf0b383feeb39ff3479953e8190b3ff242358
    - SHA256:e2a0c3a60a7c40458fb9c94842b26fc67bf3bd818a15f9aab1a0a60dcd2b63b8
    - SHA1:37245e495936ba805007649e7179fec0986461b3 [weak]
    - MD5Sum:7ba9f6c91cdba2abf1e496a2cc437b92 [weak]
    - Filesize:57192 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I am unable to understand the issue, and i tried some solutions but still facing the issue, what should i do?

FedKad avatar
cn flag
It's not "*ubantu*"; it is "**Ubuntu**"!
Sad3ng avatar
vn flag
why you are using two repositories `http://in.archive.ubuntu.com/ubuntu` and `http://archive.ubuntu.com/ubuntu` ?
Darshil avatar
gt flag
I have no idea, i think the first repository may have faild to fetch the info so apt program may have automatically tried with different repository, but i am kind of new to ubuntu.
Score:2
pw flag
Oli

A few observations:

  • in.archive.ubuntu.com would only resolve to 192.168.1.1, if your DNS had been told to do that.

  • 192.168.*.* is an internal LAN subnet, probably the network gateway

  • It looks like requests for files from 192.168.1.1 are being redirected to a login page. This is common in open networks that make you log in before they release open network traffic to you.

If I had to guess, I'd say you're on a network that wants you to log in before you can use it. I'd try to access a normal page in a normal browser, login and then try again.

Failing that, you might have manually tried to set some sort of proxy server yourself, but I'd expect you to know about this. If you have, you've done it wrong. Instead of setting a proxy, you've overridden the DNS resolution to a server that isn't expecting it.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.