Skip to content

Instantly share code, notes, and snippets.

@hakerdefo
Last active November 6, 2024 16:03
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
@hakerdefo
Copy link
Author

I think it looks all good. You can try to upgrade with this command,

sudo apt-get dist-upgrade

Good luck and enjoy Linux 🐧

@Maria-Leiliane
Copy link

I think it looks all good. You can try to upgrade with this command,

sudo apt-get dist-upgrade

Good luck and enjoy Linux 🐧

Yes It's all working thank you very much 🧑‍💻

@legenduzo
Copy link

I found this answer to be very useful in fixing apt errors. I just used it to fix mine after installing Ubuntu on Windows only to discover that gcc was not pre-packaged with it.

Thanks for publishing the latest sources list @hakerdefo 🙏

@locdhthtb
Copy link

timedatectl
-> check time zone

@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

@RaulRomeroPortales
Copy link

Hi. I'm just new in this community but I've using Linux for years and I hope I will for ever. The question is that i work like a teacher and I can't use the projector(monitor) and the TV MultimediaScreen that we have in the classrooms since I have my laptop with UbuntuStudio 22.04LTS. The TVMultimedia Screen is an APLX-65 of Promethean. In tthe webside they have as a downloads the ActivDrivers only for Ubuntu20 .04(Focal). I've been trying the two ways to install them: by the terminal and by Synaptic, but it didn't work. I'm quite desperate 'cause I need it for work, and I don't know how continue ...

@RaulRomeroPortales
Copy link

Hi @hakerdefo Can help?....I live in small town where nobody uses Linux...

@hakerdefo
Copy link
Author

Hi @hakerdefo Can help?....I live in small town where nobody uses Linux...

A bit manual but should work 🤞

https://idroot.us/install-prometheus-ubuntu-24-04/

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