microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.01k stars 29.2k forks source link

Ubuntu 24.04.1 LTS - Failed to fetch https://packages.microsoft.com/repos/code/dists/stable/InRelease Bad header #226935

Closed NJT145 closed 3 days ago

NJT145 commented 2 months ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. sudo apt update
  2. get this error: Failed to fetch https://packages.microsoft.com/repos/code/dists/stable/InRelease Bad header
hg42 commented 2 months ago

I get this error for three microsoft repos:

Warning: Failed to fetch https://packages.microsoft.com/debian/12/prod/dists/bookworm/InRelease  Bad header line Bad header data [IP: 2620:1ec:bdf::67 443]
Warning: Failed to fetch https://packages.microsoft.com/repos/edge/dists/stable/InRelease  Bad header line Bad header data [IP: 13.107.246.67 443]
Warning: Failed to fetch http://packages.microsoft.com/repos/code/dists/stable/InRelease  Bad header line Bad header data [IP: 2620:1ec:bdf::67 443]

I actually have code 1.92.0-1722473020 installed, so it worked at least until then. I run my updates manually, may be once a month.

I ran this command to clean the lists: sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update without any change.

For a test I added the other dists of the prod repo, and they didn't get this error. I could see the packages included there inside aptitude, so the lists were indeed loaded:

  --\ microsoft-debian-bookworm-prod insiders-fast (1)
p   osconfig                                                <none>                    1.0.5.2024081501          (pin microsoft-debian-bookworm-prod insiders-fast: 0
  --\ microsoft-debian-bookworm-prod nightly (3)
p   mdatp                                                   <none>                    101.24072.0000-insiderfas (pin microsoft-debian-bookworm-prod insiders-fast: 0
p   mde-netfilter                                           <none>                    100.69.73                 (pin microsoft-debian-bookworm-prod nightly:nightl 0
p   mde-netfilter-src                                       <none>                    100.69.73-2               (pin microsoft-debian-bookworm-prod nightly:nightl 0
  --\ microsoft-debian-bookworm-prod testing (7)
p   moby-buildx                                             <none>                    0.16.2-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0
p   moby-cli                                                <none>                    27.1.2-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0
p   moby-compose                                            <none>                    2.29.2-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0
p   moby-containerd                                         <none>                    1.7.20-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0
p   moby-engine                                             <none>                    27.1.2-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0
p   moby-runc                                               <none>                    1.1.13-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0
p   moby-tini                                               <none>                    0.19.0-debian12u1         (pin microsoft-debian-bookworm-prod testing:testin 0

Before you ask, this is my current sources list for ms-prod packages:

#deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/debian/12/prod bookworm main
deb [arch=amd64] https://packages.microsoft.com/debian/12/prod bookworm main
deb [arch=amd64] https://packages.microsoft.com/debian/12/prod testing main
deb [arch=amd64] https://packages.microsoft.com/debian/12/prod nightly main
deb [arch=amd64] https://packages.microsoft.com/debian/12/prod insiders-fast main
deb [arch=amd64] https://packages.microsoft.com/debian/12/prod insiders-slow main

the disabled line was the original, I only changed it to use trusted.d instead, because of some scripts I used that work with all the keys.

It doesn't matter.

I also tried other things in case the keys would be wrong. E.g. I downloaded Release.gpg and stored it in trusted.d.

I am not 100% sure, but I think the keys work, because the other dists work and I did not add more keys.

CaseyLabs commented 2 months ago

Just ran into this issue myself as well:

Error:

$ sudo apt-get update

[...output redacted for brevity]
Get:12 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,526 B]
Hit:13 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu noble InRelease    
Get:14 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,468 B] 
Hit:15 https://ppa.launchpadcontent.net/ubuntubudgie/backports/ubuntu noble InRelease
Get:16 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,462 B]
Ign:4 https://packages.microsoft.com/repos/code stable InRelease              
Get:17 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,461 B]
Ign:4 https://packages.microsoft.com/repos/code stable InRelease

Err:4 https://packages.microsoft.com/repos/code stable InRelease                                                                                              
  Bad header line Bad header data [IP: 2620:1ec:bdf::70 443]
Fetched 51.6 kB in 8s (6,601 B/s)                                   

Workaround:

sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update
NCC-IP commented 2 months ago

All you should need to do is sudo apt clean && sudo apt autoclean && sudo apt update

hg42 commented 2 months ago

Workaround: sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update

for me this didn't help (as I wrote)

I have this for months, I regularly use those cleaning commands.

sunscreem commented 2 months ago

Adding my +1 I'm afraid.

geoschwa commented 2 months ago

The Error disapeared on my system without doing anything.

hg42 commented 1 month ago

yes, on my system it's gone, too. Not sure what happened. Maybe it was gone after deinstalling gpg-sq (well, who installed this? it caused some failed keys of a few repos), but as far as I remember, the vscode problem was the only one leftover after deinstalling gpg-sq. But I wouldn't swear. Perhaps another step was necessary to solve this problem.

earnestware commented 1 month ago

same problem, nothing works lol

renkman commented 1 month ago

All you should need to do is sudo apt clean && sudo apt autoclean && sudo apt update

Thanks @NCC-IP, I had the same problem, this helped for me.

famdude commented 1 month ago

I used proxy with apt and it fixed the problem. It seems that microsoft bans some IPs.

andybalaam commented 4 weeks ago

I got an error like the above when I was mistakenly using the wrong repo url: https://packages.microsoft.com/repos/vscode. When I changed it to https://packages.microsoft.com/repos/code, it worked OK.

(The change is from vscode to code.)

darksylinc commented 2 weeks ago

I'm having the same problem and I'm utterly confused.

  1. I have a Desktop PC, connected over Ethernet. Updates fine.
  2. I have a laptop PC, connected over WiFi. Gets this error.
  3. Both are same distro (Xubuntu 24.04.1 LTS) with same router and internet infrastructure.
  4. These systems do not mach 1:1 in packages installed though.

I tried all given solutions but the problem persists.

From my laptop:

curl -v https://packages.microsoft.com/repos/code/dists/stable/InRelease &> file.txt

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host packages.microsoft.com:443 was resolved.
* IPv6: 2620:1ec:bdf::33
* IPv4: 13.107.246.33
*   Trying 13.107.246.33:443...
* Connected to packages.microsoft.com (13.107.246.33) port 443
* ALPN: curl offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [88 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [155 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [4936 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [520 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / prime256v1 / RSASSA-PSS
* ALPN: server accepted h2
* Server certificate:
*  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=packages.microsoft.com
*  start date: Sep 11 14:10:52 2024 GMT
*  expire date: Sep  6 14:10:52 2025 GMT
*  subjectAltName: host "packages.microsoft.com" matched cert's "packages.microsoft.com"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure RSA TLS Issuing CA 04
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
*   Certificate level 1: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
*   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
} [5 bytes data]
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://packages.microsoft.com/repos/code/dists/stable/InRelease
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: packages.microsoft.com]
* [HTTP/2] [1] [:path: /repos/code/dists/stable/InRelease]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
} [5 bytes data]
> GET /repos/code/dists/stable/InRelease HTTP/2
> Host: packages.microsoft.com
> User-Agent: curl/8.5.0
> Accept: */*
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [281 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [281 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
< HTTP/2 200 
< date: Fri, 18 Oct 2024 01:16:38 GMT
< content-type: application/octet-stream
< content-length: 3590
< last-modified: Thu, 17 Oct 2024 09:11:49 GMT
< etag: "0x8DCEE8BBBAC645E"
< x-ms-request-id: 8734c5af-a01e-005c-4175-205194000000
< x-ms-version: 2024-11-04
< x-ms-version-id: 2024-10-17T09:11:49.6269918Z
< x-ms-is-current-version: true
< x-ms-creation-time: Thu, 17 Oct 2024 09:11:49 GMT
< x-ms-blob-content-md5: QG2lFdtdK3XixX7+2y3R6g==
< x-ms-lease-status: unlocked
< x-ms-lease-state: available
< x-ms-blob-type: BlockBlob
< content-disposition: attachment;filename=InRelease
< x-ms-server-encrypted: true
< strict-transport-security: max-age=31536000; includeSubDomains
< x-content-type-options: nosniff
< x-azure-ref: 20241018T011638Z-r196d7675684bgms1bze88f8wg00000007rg00000000n7cb
< x-cache: TCP_HIT
< cache-control: public, max-age=10
< x-fd-int-roxy-purgeid: 66950166
< x-cache-info: L1_T2
< accept-ranges: bytes
< 
{ [3590 bytes data]

100  3590  100  3590    0     0   3748      0 --:--:-- --:--:-- --:--:--  3747
* Connection #0 to host packages.microsoft.com left intact
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Origin: code stable
Label: code stable
Suite: stable
Codename: stable
Date: Thu, 17 Oct 2024 09:09:32 +0000
Architectures: amd64 arm64 armhf all
Components: main
Description: Generated by aptly
Acquire-By-Hash: yes
SHA256:
 0e0ac697dcc6f2a27a3e7460afc117aa9395ae14454ae5db39386d86e84fc16f           331599 main/binary-amd64/Packages
 91c71e14a3044407e20439aa0765bf67511b9e6eb85cbbcf94da4675aa87aeff            17895 main/binary-amd64/Packages.gz
 e47668fb3b179a957b3f1a2a7ae09a71fce100fc1b5be1138742f91b373e5902           337906 main/binary-arm64/Packages
 56b36c0a8c65c0233b7aab3eb9bb78c677bd20fff4a670f2837913ee928b93ca            18001 main/binary-arm64/Packages.gz
 7faff8a3aa4eed8d9e1ae0ff2adf75d42b028e5a1919ca4095a237296479b4c6           345425 main/binary-armhf/Packages
 33ee9e25a4113a78a2f379658ac995d16b03840cbda3e054e310517540175365            18064 main/binary-armhf/Packages.gz
 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855                0 main/binary-all/Packages
 9668d9d840263957c41b0adffaa2733621a3bff505d87bab34b9cf83843aaac4               29 main/binary-all/Packages.gz
 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855                0 main/source/Sources
 69d8b63b314209bacac48e28dd736f74621a53822bbe562228a258fa13341bed               28 main/source/Sources.gz
SHA512:
 eed2629eb7874a7c948c7dc049e5b526c411990c6bdd3af46e3a8d707e49fd6d7124b2a5e4dd817aa4031fdd4f20cbcd2a4d49ce4b9b4821ccee2e779a3d4812           331599 main/binary-amd64/Packages
 d29b865cb8604d434be2e83368f97ba4296672d638a9b62785e57effc27dbfdba72571fc1e79ef6e360d92ba85980cbf49deedbb7e9635926c199be9c011be49            17895 main/binary-amd64/Packages.gz
 8f5c06a58df99b3467c7c7d51a2e593156679219923fe150417893c7acf79b6b88d32f349453e7a5379a69aa1c4ad42d1877dbd7dc30a07ee178c02b8b5ed858           337906 main/binary-arm64/Packages
 527c9425140477823e9fd75e1fee55a6e339900713bfae899467f25d09e4768bcbc8a477419e54d5d9533b6673f72cc4d6a6fc33eb34b4311046f68743e765c1            18001 main/binary-arm64/Packages.gz
 aabdf9cfb3dbe645f5e18d4530883a948bb11db8f1b10e58ef5c9b1b5033338fab5232186406928d3411c6f7c6cc6a4d46073784fc78976215eff11ff89b1a6f           345425 main/binary-armhf/Packages
 deee74fe38c78fc39f88d18d9e1229ce5765198f157de6c374b9288e87e6c459d46b0b0ab07c5549b08008c93ad0f5445c544611b039674bdddea436120eb530            18064 main/binary-armhf/Packages.gz
 cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e                0 main/binary-all/Packages
 dfaa743e7cf6fb094cb6c511ae51ff91d3f8b518e0f2a94e0a9269f53f89f3376e4e928553ff640ebf2af0e0f960e96ea0e3e80c92ef0257814ea6b4c830f654               29 main/binary-all/Packages.gz
 cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e                0 main/source/Sources
 76b973cb922ef04a1b03832ee0cc30c10ff1eec85ffa5283061bd9eeb619daf5f13399031c16cc2acb45a6c17d9f9861f5264ae1d301256d51e0af4e9bf2f142               28 main/source/Sources.gz

-----BEGIN PGP SIGNATURE-----
Version: BSN Pgp v1.0.0.0

iQEcBAEBCAAGBQJnENRfAAoJEOs+lK2+EinPiN0H/i/u93G+KpfXeGGM/gWlzsFN
BG9J2QTBKTBG6ssTBk4O42uw9/cqYKYpQ3VWsEgGUkxDCE4KYnzZYogHZr7KZShb
Zo3kObRdMFpe2CoaessteGmR8B4Rx2iKVwzVhVLH1GUXUcuQ5044c3exEDoU3tsJ
vMnahf0+qSRVOxOaKShbqaWfK5h7Oy43AY1hvyK238xBxyCUn0CeQwiFfdWa1KLd
P4wItUzEoqZ06gDDFEG0RH8lpL65EzF5oUaMl6RGLS3zRcK2qw5hASskFUe1Oh15
bQjmgIb1vRuaSg9w11xm70QTl/MX1/8ENzebgl5xLO3gR7vb6R0AfsTjrAkhy44=
-----END PGP SIGNATURE-----

My Desktop shows the same output except for the timestamps and azure ticket.

Note worthy issues:

  1. ~Server is using HTTP/2~. apt uses http1 and it works fine.
  2. ~Curl complains about the TLS ticket becoming stale and has to acquire a new one. This might be a problem, specially if there is a timing issue (i.e. a race condition would explain the problem). Likely an apt bug that cannot deal with the stale TLS ticket~. Not a problem in http1
sudo apt update -oDebug::Acquire::https=1 &> apt.txt

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 http://ubuntu.unc.edu.ar/ubuntu noble InRelease
GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

Hit:2 http://ubuntu.unc.edu.ar/ubuntu noble-updates InRelease
GET /linux/chrome/deb/dists/stable/InRelease HTTP/1.1
Host: dl.google.com
Cache-Control: max-age=0
Accept: text/*
If-Modified-Since: Thu, 17 Oct 2024 17:05:20 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

Answer for: https://packages.microsoft.com/repos/code/dists/stable/InRelease
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hit:3 http://ubuntu.unc.edu.ar/ubuntu noble-backports InRelease
Ign:4 https://packages.microsoft.com/repos/code stable InRelease
Answer for: https://dl.google.com/linux/chrome/deb/dists/stable/InRelease
HTTP/1.1 304 Not Modified
Cache-Control: public,max-age=0
Content-Disposition: attachment
Content-Security-Policy: default-src 'none'
Etag: "348d4af"
Server: downloads
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0
Date: Fri, 18 Oct 2024 01:33:18 GMT
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000

Hit:5 http://ubuntu.unc.edu.ar/ubuntu noble-security InRelease
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease
GET /xuzhen666/dockbarx/ubuntu/dists/noble/InRelease HTTP/1.1
Host: ppa.launchpadcontent.net
Cache-Control: max-age=0
Accept: text/*
If-Modified-Since: Wed, 16 Oct 2024 16:44:50 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

GET /linux/repo/xUbuntu_24.04/./InRelease HTTP/1.1
Host: mega.nz
Cache-Control: max-age=0
Accept: text/*
If-Modified-Since: Fri, 18 Oct 2024 01:05:45 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

Answer for: Answer for: https://ppa.launchpadcontent.net/xuzhen666/dockbarx/ubuntu/dists/noble/InReleasehttps://mega.nz/linux/repo/xUbuntu_24.04/./InRelease

HTTP/1.1 304 Not Modified
date: Fri, 18 Oct 2024 01:33:20 GMT
server: Apache/2.4.41 (Ubuntu)
etag: "4683-6249ac9dc85dd"
expires: Fri, 18 Oct 2024 01:33:20 GMT
cache-control: max-age=0, s-maxage=270, proxy-revalidate

HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 2961
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: MEGA-Chrome-Antileak
Access-Control-Max-Age: 86400

Hit:7 https://ppa.launchpadcontent.net/xuzhen666/dockbarx/ubuntu noble InRelease
Get:8 https://mega.nz/linux/repo/xUbuntu_24.04 ./ InRelease [2.961 B]
GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

Answer for: https://packages.microsoft.com/repos/code/dists/stable/InRelease
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ign:4 https://packages.microsoft.com/repos/code stable InRelease
GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

Answer for: https://packages.microsoft.com/repos/code/dists/stable/InRelease
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ign:4 https://packages.microsoft.com/repos/code stable InRelease
GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

GET /repos/code/dists/stable/InRelease HTTP/1.1
Host: packages.microsoft.com
Cache-Control: max-age=0
Accept: text/*
Range: bytes=3590-
If-Range: Thu, 17 Oct 2024 09:11:49 GMT
User-Agent: Debian APT-HTTP/1.3 (2.7.14)

Answer for: https://packages.microsoft.com/repos/code/dists/stable/InRelease
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Err:4 https://packages.microsoft.com/repos/code stable InRelease
  Bad header line Bad header data [IP: 13.107.246.33 443]
Fetched 2.961 B in 8s (350 B/s)
Reading package lists...
Building dependency tree...
Reading state information...
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch https://packages.microsoft.com/repos/code/dists/stable/InRelease  Bad header line Bad header data [IP: 13.107.246.33 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
darksylinc commented 2 weeks ago

The problem fixed on its own on the next day. As in literal magic. I did not update the laptop at all.

All I did was:

  1. Go to Internet Café which has a different ISP (yesterday I tried 2 different ISPs with the same outcome, but today I used a 3rd ISP that went fine).
    • Update there. It went perfect.
  2. Try again at home. It went fine.
  3. Try again at home, but doing sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update. Also went fine.
n00b-t00b commented 3 days ago

I got an error like the above when I was mistakenly using the wrong repo url: https://packages.microsoft.com/repos/vscode. When I changed it to https://packages.microsoft.com/repos/code, it worked OK.

(The change is from vscode to code.)

Thank you this was it for me, odd it worked up until 1.94.2-1728494015

rzhao271 commented 3 days ago

I am closing this issue due to it being a transient upstream issue. One workaround for those still encountering this issue is to do an uninstall + purge* and reinstall.

*e.g. dpkg -P for dpkg users, not sure for other package managers

ahmed-abderraham commented 4 hours ago

So, break people's vscode linux installations, then close issue recommeding to just purge and reinstall. Some things in Microsoft never change I guess. Embrace, extend, and extinguish.