ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key and run sudo apt update again.

gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.

gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.


Edit:

After following the instructions on disabling proxy and returning to the unchanged configurations, I got this response when running sudo apt update for the first time:

Atingido:1 http://sft.if.usp.br/ubuntu bionic InRelease     
Atingido:2 http://sft.if.usp.br/ubuntu bionic-updates InRelease 
Atingido:3 http://sft.if.usp.br/ubuntu bionic-backports InRelease    
Obter:4 http://sft.if.usp.br/ubuntu bionic-security InRelease [88,7 kB]  
Atingido:5 http://archive.ubuntu.com/ubuntu bionic InRelease  
Obter:6 http://sft.if.usp.br/ubuntu bionic-security/main Sources [114 kB]
Obter:7 http://sft.if.usp.br/ubuntu bionic-security/main i386 Packages [327 kB]
Obter:8 http://sft.if.usp.br/ubuntu bionic-security/main amd64 Packages [430 kB]
Obter:9 http://sft.if.usp.br/ubuntu bionic-security/main amd64 DEP-11 Metadata [17,9 kB]
Obter:10 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Obter:11 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 64x64 Icons [25,6 kB]
Obter:12 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 Packages [568 kB]
Obter:13 http://sft.if.usp.br/ubuntu bionic-security/universe i386 Packages [561 kB]
Obter:14 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 DEP-11 Metadata [36,1 kB]
Obter:15 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Obter:16 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 64x64 Icons [99,2 kB]
Obter:17 http://sft.if.usp.br/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.460 B]
Baixados 2.296 kB em 8s (290 kB/s)                                           
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Where is the ROS package repository here?

Is sft.if.usp.br a ROS package mirror?

After that, I ran the final (installation) command, but the response was the same as always (in the beginngin of the question it's written). I tried yet again running the entire installation procedure, but the response to all command returned to being the same as the last time.

From the last apt update output you show, no ROS package repository is configured on your system, so apt not being able to find ros-melodic-desktop-full would seem to be expected.

You still haven't shown us the output of

cat /etc/apt/sources.list.d/ros-latest.list

and

cat /etc/apt/sources.list

without that we cannot help you any further.

gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.


Edit:

After following the instructions on disabling proxy and returning to the unchanged configurations, I got this response when running sudo apt update for the first time:

Atingido:1 http://sft.if.usp.br/ubuntu bionic InRelease     
Atingido:2 http://sft.if.usp.br/ubuntu bionic-updates InRelease 
Atingido:3 http://sft.if.usp.br/ubuntu bionic-backports InRelease    
Obter:4 http://sft.if.usp.br/ubuntu bionic-security InRelease [88,7 kB]  
Atingido:5 http://archive.ubuntu.com/ubuntu bionic InRelease  
Obter:6 http://sft.if.usp.br/ubuntu bionic-security/main Sources [114 kB]
Obter:7 http://sft.if.usp.br/ubuntu bionic-security/main i386 Packages [327 kB]
Obter:8 http://sft.if.usp.br/ubuntu bionic-security/main amd64 Packages [430 kB]
Obter:9 http://sft.if.usp.br/ubuntu bionic-security/main amd64 DEP-11 Metadata [17,9 kB]
Obter:10 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Obter:11 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 64x64 Icons [25,6 kB]
Obter:12 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 Packages [568 kB]
Obter:13 http://sft.if.usp.br/ubuntu bionic-security/universe i386 Packages [561 kB]
Obter:14 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 DEP-11 Metadata [36,1 kB]
Obter:15 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Obter:16 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 64x64 Icons [99,2 kB]
Obter:17 http://sft.if.usp.br/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.460 B]
Baixados 2.296 kB em 8s (290 kB/s)                                           
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Where is the ROS package repository here?

Is sft.if.usp.br a ROS package mirror?

After that, I ran the final (installation) command, but the response was the same as always (in the beginngin of the question it's written). I tried yet again running the entire installation procedure, but the response to all command returned to being the same as the last time.

From the last apt update output you show, no ROS package repository is configured on your system, so apt not being able to find ros-melodic-desktop-full would seem to be expected.

You still haven't shown us the output of

cat /etc/apt/sources.list.d/ros-latest.list

and

cat /etc/apt/sources.list

without that we cannot help you any further.


It would appear that apt is not downloading the ROS repository indices. Without those it cannot know about any ROS packages, so the apt install error is expected.

As to why apt is not downloading the ROS package indices I can't say anything right now.

Try a sudo apt clean and then a sudo apt update to see if that changes anything.

Edit: note: this does not appear to be an issue with the key at this point. apt is really not even attempting to download the indices. Verifying the signatures is done at a later stage.

What is the output of:

sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.


Edit:

After following the instructions on disabling proxy and returning to the unchanged configurations, I got this response when running sudo apt update for the first time:

Atingido:1 http://sft.if.usp.br/ubuntu bionic InRelease     
Atingido:2 http://sft.if.usp.br/ubuntu bionic-updates InRelease 
Atingido:3 http://sft.if.usp.br/ubuntu bionic-backports InRelease    
Obter:4 http://sft.if.usp.br/ubuntu bionic-security InRelease [88,7 kB]  
Atingido:5 http://archive.ubuntu.com/ubuntu bionic InRelease  
Obter:6 http://sft.if.usp.br/ubuntu bionic-security/main Sources [114 kB]
Obter:7 http://sft.if.usp.br/ubuntu bionic-security/main i386 Packages [327 kB]
Obter:8 http://sft.if.usp.br/ubuntu bionic-security/main amd64 Packages [430 kB]
Obter:9 http://sft.if.usp.br/ubuntu bionic-security/main amd64 DEP-11 Metadata [17,9 kB]
Obter:10 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Obter:11 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 64x64 Icons [25,6 kB]
Obter:12 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 Packages [568 kB]
Obter:13 http://sft.if.usp.br/ubuntu bionic-security/universe i386 Packages [561 kB]
Obter:14 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 DEP-11 Metadata [36,1 kB]
Obter:15 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Obter:16 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 64x64 Icons [99,2 kB]
Obter:17 http://sft.if.usp.br/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.460 B]
Baixados 2.296 kB em 8s (290 kB/s)                                           
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Where is the ROS package repository here?

Is sft.if.usp.br a ROS package mirror?

After that, I ran the final (installation) command, but the response was the same as always (in the beginngin of the question it's written). I tried yet again running the entire installation procedure, but the response to all command returned to being the same as the last time.

From the last apt update output you show, no ROS package repository is configured on your system, so apt not being able to find ros-melodic-desktop-full would seem to be expected.

You still haven't shown us the output of

cat /etc/apt/sources.list.d/ros-latest.list

and

cat /etc/apt/sources.list

without that we cannot help you any further.


Edit 2:

It would appear that apt is not downloading the ROS repository indices. Without those it cannot know about any ROS packages, so the apt install error is expected.

As to why apt is not downloading the ROS package indices I can't say anything right now.

Try a sudo apt clean and then a sudo apt update to see if that changes anything.

Edit: note: this does not appear to be an issue with the key at this point. apt is really not even attempting to download the indices. Verifying the signatures is done at a later stage.

What is the output of:

sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.


Edit:

After following the instructions on disabling proxy and returning to the unchanged configurations, I got this response when running sudo apt update for the first time:

Atingido:1 http://sft.if.usp.br/ubuntu bionic InRelease     
Atingido:2 http://sft.if.usp.br/ubuntu bionic-updates InRelease 
Atingido:3 http://sft.if.usp.br/ubuntu bionic-backports InRelease    
Obter:4 http://sft.if.usp.br/ubuntu bionic-security InRelease [88,7 kB]  
Atingido:5 http://archive.ubuntu.com/ubuntu bionic InRelease  
Obter:6 http://sft.if.usp.br/ubuntu bionic-security/main Sources [114 kB]
Obter:7 http://sft.if.usp.br/ubuntu bionic-security/main i386 Packages [327 kB]
Obter:8 http://sft.if.usp.br/ubuntu bionic-security/main amd64 Packages [430 kB]
Obter:9 http://sft.if.usp.br/ubuntu bionic-security/main amd64 DEP-11 Metadata [17,9 kB]
Obter:10 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Obter:11 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 64x64 Icons [25,6 kB]
Obter:12 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 Packages [568 kB]
Obter:13 http://sft.if.usp.br/ubuntu bionic-security/universe i386 Packages [561 kB]
Obter:14 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 DEP-11 Metadata [36,1 kB]
Obter:15 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Obter:16 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 64x64 Icons [99,2 kB]
Obter:17 http://sft.if.usp.br/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.460 B]
Baixados 2.296 kB em 8s (290 kB/s)                                           
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Where is the ROS package repository here?

Is sft.if.usp.br a ROS package mirror?

After that, I ran the final (installation) command, but the response was the same as always (in the beginngin of the question it's written). I tried yet again running the entire installation procedure, but the response to all command returned to being the same as the last time.

From the last apt update output you show, no ROS package repository is configured on your system, so apt not being able to find ros-melodic-desktop-full would seem to be expected.

You still haven't shown us the output of

cat /etc/apt/sources.list.d/ros-latest.list

and

cat /etc/apt/sources.list

without that we cannot help you any further.


Edit 2:

It would appear that apt is not downloading the ROS repository indices. Without those it cannot know about any ROS packages, so the apt install error is expected.

As to why apt is not downloading the ROS package indices I can't say anything right now.

Try a sudo apt clean and then a sudo apt update to see if that changes anything.

Edit: note: this does not appear to be an issue with the key at this point. apt is really not even attempting to download the indices. Verifying the signatures is done at a later stage.

What is the output of:

sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

Edit 3:

Output of the sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" command:

Ign:1 http://packages.ros.org/ros/ubuntu bionic InRelease
 Err:2 http://packages.ros.org/ros/ubuntu bionic Release
      404  Not Found [IP: 91.189.91.26 80]
 Lendo listas de pacotes... Pronto
 E: The repository 'http://packages.ros.org/ros/ubuntu bionic Release' does not have 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.

This would suggest there is still a problem with the keys.

Can you make sure you have successfully removed the old key and imported the new one? Refer to #q325039 again if you need the commands.

Can you please also show us the output of both commands?

gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.


Edit:

After following the instructions on disabling proxy and returning to the unchanged configurations, I got this response when running sudo apt update for the first time:

Atingido:1 http://sft.if.usp.br/ubuntu bionic InRelease     
Atingido:2 http://sft.if.usp.br/ubuntu bionic-updates InRelease 
Atingido:3 http://sft.if.usp.br/ubuntu bionic-backports InRelease    
Obter:4 http://sft.if.usp.br/ubuntu bionic-security InRelease [88,7 kB]  
Atingido:5 http://archive.ubuntu.com/ubuntu bionic InRelease  
Obter:6 http://sft.if.usp.br/ubuntu bionic-security/main Sources [114 kB]
Obter:7 http://sft.if.usp.br/ubuntu bionic-security/main i386 Packages [327 kB]
Obter:8 http://sft.if.usp.br/ubuntu bionic-security/main amd64 Packages [430 kB]
Obter:9 http://sft.if.usp.br/ubuntu bionic-security/main amd64 DEP-11 Metadata [17,9 kB]
Obter:10 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Obter:11 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 64x64 Icons [25,6 kB]
Obter:12 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 Packages [568 kB]
Obter:13 http://sft.if.usp.br/ubuntu bionic-security/universe i386 Packages [561 kB]
Obter:14 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 DEP-11 Metadata [36,1 kB]
Obter:15 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Obter:16 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 64x64 Icons [99,2 kB]
Obter:17 http://sft.if.usp.br/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.460 B]
Baixados 2.296 kB em 8s (290 kB/s)                                           
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Where is the ROS package repository here?

Is sft.if.usp.br a ROS package mirror?

After that, I ran the final (installation) command, but the response was the same as always (in the beginngin of the question it's written). I tried yet again running the entire installation procedure, but the response to all command returned to being the same as the last time.

From the last apt update output you show, no ROS package repository is configured on your system, so apt not being able to find ros-melodic-desktop-full would seem to be expected.

You still haven't shown us the output of

cat /etc/apt/sources.list.d/ros-latest.list

and

cat /etc/apt/sources.list

without that we cannot help you any further.


Edit 2:

It would appear that apt is not downloading the ROS repository indices. Without those it cannot know about any ROS packages, so the apt install error is expected.

As to why apt is not downloading the ROS package indices I can't say anything right now.

Try a sudo apt clean and then a sudo apt update to see if that changes anything.

Edit: note: this does not appear to be an issue with the key at this point. apt is really not even attempting to download the indices. Verifying the signatures is done at a later stage.

What is the output of:

sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

Edit 3:

Output of the sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" command:

Ign:1 http://packages.ros.org/ros/ubuntu bionic InRelease
 Err:2 http://packages.ros.org/ros/ubuntu bionic Release
      404  Not Found [IP: 91.189.91.26 80]
 Lendo listas de pacotes... Pronto
 E: The repository 'http://packages.ros.org/ros/ubuntu bionic Release' does not have 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.

This would suggest there is still a problem with the keys.

Can you make sure you have successfully removed the old key and imported the new one? Refer to #q325039 again if you need the commands.

You could check whether the key is imported by running apt-key list and looking for the key with a uid of Open Robotics <info@osrfoundation.org>.

Can you please also show us the output of both commands?

gpg: chave 5523BAEEB01FA116: "ROS Builder <rosbuild@ros.org>" não mudada

From the apt-key output shown I'm pretty sure this is #q325039.

Update the key, undo any changes you made to your sources.list (and files under that directory) and run sudo apt update again.


Edit:

After following the instructions on disabling proxy and returning to the unchanged configurations, I got this response when running sudo apt update for the first time:

Atingido:1 http://sft.if.usp.br/ubuntu bionic InRelease     
Atingido:2 http://sft.if.usp.br/ubuntu bionic-updates InRelease 
Atingido:3 http://sft.if.usp.br/ubuntu bionic-backports InRelease    
Obter:4 http://sft.if.usp.br/ubuntu bionic-security InRelease [88,7 kB]  
Atingido:5 http://archive.ubuntu.com/ubuntu bionic InRelease  
Obter:6 http://sft.if.usp.br/ubuntu bionic-security/main Sources [114 kB]
Obter:7 http://sft.if.usp.br/ubuntu bionic-security/main i386 Packages [327 kB]
Obter:8 http://sft.if.usp.br/ubuntu bionic-security/main amd64 Packages [430 kB]
Obter:9 http://sft.if.usp.br/ubuntu bionic-security/main amd64 DEP-11 Metadata [17,9 kB]
Obter:10 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Obter:11 http://sft.if.usp.br/ubuntu bionic-security/main DEP-11 64x64 Icons [25,6 kB]
Obter:12 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 Packages [568 kB]
Obter:13 http://sft.if.usp.br/ubuntu bionic-security/universe i386 Packages [561 kB]
Obter:14 http://sft.if.usp.br/ubuntu bionic-security/universe amd64 DEP-11 Metadata [36,1 kB]
Obter:15 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Obter:16 http://sft.if.usp.br/ubuntu bionic-security/universe DEP-11 64x64 Icons [99,2 kB]
Obter:17 http://sft.if.usp.br/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.460 B]
Baixados 2.296 kB em 8s (290 kB/s)                                           
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

Where is the ROS package repository here?

Is sft.if.usp.br a ROS package mirror?

After that, I ran the final (installation) command, but the response was the same as always (in the beginngin of the question it's written). I tried yet again running the entire installation procedure, but the response to all command returned to being the same as the last time.

From the last apt update output you show, no ROS package repository is configured on your system, so apt not being able to find ros-melodic-desktop-full would seem to be expected.

You still haven't shown us the output of

cat /etc/apt/sources.list.d/ros-latest.list

and

cat /etc/apt/sources.list

without that we cannot help you any further.


Edit 2:

It would appear that apt is not downloading the ROS repository indices. Without those it cannot know about any ROS packages, so the apt install error is expected.

As to why apt is not downloading the ROS package indices I can't say anything right now.

Try a sudo apt clean and then a sudo apt update to see if that changes anything.

Edit: note: this does not appear to be an issue with the key at this point. apt is really not even attempting to download the indices. Verifying the signatures is done at a later stage.

What is the output of:

sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

Edit 3:

Output of the sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/ros-latest.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" command:

Ign:1 http://packages.ros.org/ros/ubuntu bionic InRelease
 Err:2 http://packages.ros.org/ros/ubuntu bionic Release
      404  Not Found [IP: 91.189.91.26 80]
 Lendo listas de pacotes... Pronto
 E: The repository 'http://packages.ros.org/ros/ubuntu bionic Release' does not have 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.

This would suggest there is still a problem with the keys.

Can you make sure you have successfully removed the old key and imported the new one? Refer to #q325039 again if you need the commands.

You could check whether the key is imported by running apt-key list and looking for the key with a uid of Open Robotics <info@osrfoundation.org>.

Can you please also show us the output of both commands?


Edit 4: At this point it would be good to take a step back and check some basics.

Could you please create (if you don't already have one) an Ubuntu 18.04 install USB stick and boot from it.

Then follow the ROS Melodic installation instructions. They already use the new key, so no need to follow #q325039.

If sudo apt update does work on the USB booted OS, then I believe the issue is with your current install. I'll leave it to you to decide whether to reinstall or to keep trying to diagnose what is wrong with your current installation.