Skip to content

Instantly share code, notes, and snippets.

@hakerdefo
Last active June 10, 2024 20:50
Show Gist options
  • Save hakerdefo/9c99e140f543b5089e32176fe8721f5f to your computer and use it in GitHub Desktop.
Save hakerdefo/9c99e140f543b5089e32176fe8721f5f to your computer and use it in GitHub Desktop.
Ubuntu 22.04 LTS (Jammy Jellyfish) complete sources.list
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ jammy partner
# deb-src http://archive.canonical.com/ubuntu/ jammy partner
@Kuchi-i
Copy link

Kuchi-i commented Dec 16, 2023

Hi I'm pretty new to this but ive been trying to download ROS2 this list helped me with previous issues I had but now I keep getting this issue, I unsure as to how to fix it:

$ sudo apt update && sudo apt install locales

Hit:1 http://archive.canonical.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:6 http://packages.ros.org/ros/ubuntu jammy InRelease
Err:7 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 140.211.166.134 80]
Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy 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.

Please can anyone help?

@hakerdefo
Copy link
Author

@Kuchi-i

You are trying to install an older version that is unsupported on the Ubuntu Jammy. First remove any repo file and the corresponding signing key that you might have added,

sudo rm /etc/apt/sources.list.d/ros-latest.list

sudo rm /usr/share/keyrings/ros.asc
sudo rm /usr/share/keyrings/ros.gpg

And, install ROS,

sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update
sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt upgrade
sudo apt full-upgrade
sudo apt install ros-dev-tools
sudo apt install ros-iron-desktop

Hopefully this will solve your issue.

@myKatrina2003
Copy link

Wow,it works!! Thanks!!

@optimuslem
Copy link

Hello, I get the following error when doing apt-get update

W: Fallo al obtener http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Fallo temporal al resolver «archive.ubuntu.com»
W: Fallo al obtener http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Fallo temporal al resolver «archive.ubuntu.com»
W: Fallo al obtener http://archive.ubuntu.com/ubuntu/dists/jammy-security/InRelease Fallo temporal al resolver «archive.ubuntu.com»
W: Fallo al obtener http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Fallo temporal al resolver «archive.ubuntu.com»
W: Fallo al obtener http://archive.canonical.com/ubuntu/dists/jammy/InRelease Fallo temporal al resolver «archive.canonical.com»
W: No se han podido descargar algunos archivos de índice, se han omitido, o se han utilizado unos antiguos en su lugar.
source list

@hakerdefo
Copy link
Author

@optimuslem

Everything seems okay in your sources.list file. Could be temporary connectivity issue either at your end or at the server end.

@Ubuntu22-04
Copy link

Screenshot from 2024-04-27 00-49-51
Please help, something like this has happened. How should I fix it ?

@hakerdefo
Copy link
Author

Screenshot from 2024-04-27 00-49-51 Please help, something like this has happened. How should I fix it ?

You seem to be running ARM architecture. You should try the following in your sources.list file,

deb http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse

@fransierraco
Copy link

Thnks a lot @hakerdefo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment