vineri, 2 aprilie 2021

Ubuntu upgrade error la pachetele de la Microsoft

 Eroare pt pachetele de la Microsoft:

sudo apt update

Err:9 http://packages.microsoft.com/repos/vscode stable InRelease   

  Could not resolve 'packages.microsoft.com'

Reading package lists... Done            

Building dependency tree       

Reading state information... Done

All packages are up to date.

W: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/InRelease  Could not resolve 'packages.microsoft.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.


Apare din cauza certificatelor invalide:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -


sudo apt update
Get:9 http://packages.microsoft.com/repos/code stable InRelease [10,4 kB]
Get:10 http://packages.microsoft.com/repos/code stable/main armhf Packages [20,5 kB]                                                           
Get:11 http://packages.microsoft.com/repos/code stable/main arm64 Packages [20,8 kB]                                                           
Get:12 http://packages.microsoft.com/repos/code stable/main amd64 Packages [20,2 kB]                                                           
Fetched 71,9 kB in 7s (10,9 kB/s)                                                                                                              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
 

Niciun comentariu:

Trimiteți un comentariu