Skip to content

Instantly share code, notes, and snippets.

@hakerdefo
Last active November 28, 2024 18:54
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

@Marilyn-FullStack

Please post the output of the following command,

ls -la /etc/apt/sources.list.d

@Maria-Leiliane
Copy link

@Marilyn-FullStack

Please post the output of the following command,

ls -la /etc/apt/sources.list.d
Thank you very much, there is a little more and I saw videos and I got it.

@lxphenrique
Copy link

Ah cool, that means you fixed?! 👾

@Maria-Leiliane
Copy link

h cool, that means you fixed?! 👾

Yeses, I lost sleep watching several videos, but now I interact some basic commands, I applied autoclean to VS Code that deleted the repository with error.
When I was able to apply the sequence it gave that a repository was being ignored, but it released several updates

@hakerdefo
Copy link
Author

@Marilyn-FullStack

That's great. I'm glad you got it all figured out 👍

Now, you won't have to lose sleep 😜 😪

@Maria-Leiliane
Copy link

@Marilyn-FullStack

That's great. I'm glad you got it all figured out 👍

Now, you won't have to lose sleep 😜 😪

I thought I made it but
Ignoring file 'elastic-6.x.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension omg

@Maria-Leiliane
Copy link

Maria-Leiliane commented Sep 5, 2023

@Marilyn-FullStack

Please post the output of the following command,

ls -la /etc/apt/sources.list.d

marilyn@Mlls:~$ ls -la /etc/apt/sources.list.d total 24 drwxr-xr-x 2 root root 4096 set 5 01:22 . drwxr-xr-x 8 root root 4096 set 4 01:29 .. -rw------- 1 root root 3 set 4 01:24 elastic-6.x.save -rw------- 1 root root 1 set 4 01:59 elastic-6.x.save.1 -rw-r--r-- 1 root root 190 jul 31 22:35 google-chrome.list -rw-r--r-- 1 root root 203 jul 31 22:35 vscode.list marilyn@Mlls:~$

my listing is like this

@hakerdefo
Copy link
Author

Can you post the output of,

nano /etc/apt/sources.list.d/elastic-6.x.save

and,

nano /etc/apt/sources.list.d/elastic-6.x.save.1

Don't worry, you are very near to solving this.

@Maria-Leiliane
Copy link

Maria-Leiliane commented Sep 5, 2023

Can you post the output of,

nano /etc/apt/sources.list.d/elastic-6.x.save

and,

nano /etc/apt/sources.list.d/elastic-6.x.save.1

Don't worry, you are very near to solving this.
[ Error reading /etc/apt/sources.list.d/elastic-6.x.save: Permission denied ]
and
[ Directory 'etc/apt/sources.list.d' does not exist ]

@hakerdefo
Copy link
Author

Prefix sudo like this and post the output,

sudo nano /etc/apt/sources.list.d/elastic-6.x.save

and,

sudo nano /etc/apt/sources.list.d/elastic-6.x.save.1

@Maria-Leiliane
Copy link

Prefix sudo like this and post the output,

sudo nano /etc/apt/sources.list.d/elastic-6.x.save

and,

sudo nano /etc/apt/sources.list.d/elastic-6.x.save.1

GNU nano 6.2 /etc/apt/sources.list.d/elastic-6.x.save
^X

[Read 1 line]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location ^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line

and

GNU nano 6.2 /etc/apt/sources.list.d/elastic-6.x.save.1~

[New File]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location ^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line

@hakerdefo
Copy link
Author

Run these commands and everything should be fine, fingers crossed 🤞

sudo rm /etc/apt/sources.list.d/elastic-6.x.save
sudo rm /etc/apt/sources.list.d/elastic-6.x.save.1
sudo apt-get update 
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get --fix-broken install

@Maria-Leiliane
Copy link

Run these commands and everything should be fine, fingers crossed 🤞

sudo rm /etc/apt/sources.list.d/elastic-6.x.save
sudo rm /etc/apt/sources.list.d/elastic-6.x.save.1
sudo apt-get update 
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get --fix-broken install

marilyn@Mlls:~$ sudo rm /etc/apt/sources.list.d/elastic-6.x.save [sudo] password for marilyn: marilyn@Mlls:~$ sudo rm /etc/apt/sources.list.d/elastic-6.x.save.1 marilyn@Mlls:~$ sudo apt-get update Hit:1 http://br.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://br.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:3 http://br.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB] Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Hit:5 http://packages.microsoft.com/repos/code stable InRelease Get:6 https://dl.google.com/linux/chrome/deb stable InRelease [1825 B] Get:7 http://br.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [101 kB] Get:8 http://br.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [289 kB] Get:9 http://br.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B] Get:10 http://br.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [4920 B] Get:11 http://br.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [16,6 kB] Get:12 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1088 B] Get:13 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43,1 kB] Get:14 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [40,1 kB] Fetched 836 kB in 2s (421 kB/s) Reading package lists... Done marilyn@Mlls:~$ sudo apt-get clean marilyn@Mlls:~$ sudo apt-get autoclean Reading package lists... Done Building dependency tree... Done Reading state information... Done marilyn@Mlls:~$ sudo apt-get autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. marilyn@Mlls:~$ sudo apt-get --fix-broken install Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. marilyn@Mlls:~$
ingers crossed 🤞

@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/

@merceroncode
Copy link

@RaulRomeroPortales I've stumbled upon your message while searching for ubuntu focal sources.list file, and all I really can say is that if a driver isn't included in the kernel but the vendor uses it, this isn't something that Linux was designed for. Linux was designed to keep device drivers in the kernel. You should contact the Promethean support for them to release updated drivers or any instruction to use it. It falls under the responsibility of someone providing the equipment. That's my 5c. Nobody will really help you set it up for them, we don't have it at home :(

Just my 5c as @hakerdefo didn't understand your message and linked Prometheus support which isn't Promethean multimedia screen.

Overall, in my experience, most multimedia screens were just using HDMI and then a tablet-like input for it. You can try using https://help.gnome.org/users/gnome-help/stable/wacom.html.en to align it to the screen if that's the case, and then a regular HDMI. If it's proprietary then it might be even possible that Promethean didn't release documentation for Linux kernel developers to add it to mainline kernel, then there's nothing we can do except recommending to avoid this particular manufacturer.

https://support.prometheanworld.com/s/article/1623?language=en_US

The last thing I might recommend is using 20.04 LTS still, it's technically still supported until April. But overall, since this package is tools, I don't know if you really need it. Might be that just regular graphic tablet utilities are fine.

@hakerdefo
Copy link
Author

@RaulRomeroPortales I've stumbled upon your message while searching for ubuntu focal sources.list file, and all I really can say is that if a driver isn't included in the kernel but the vendor uses it, this isn't something that Linux was designed for. Linux was designed to keep device drivers in the kernel. You should contact the Promethean support for them to release updated drivers or any instruction to use it. It falls under the responsibility of someone providing the equipment. That's my 5c. Nobody will really help you set it up for them, we don't have it at home :(

Just my 5c as @hakerdefo didn't understand your message and linked Prometheus support which isn't Promethean multimedia screen.

Overall, in my experience, most multimedia screens were just using HDMI and then a tablet-like input for it. You can try using https://help.gnome.org/users/gnome-help/stable/wacom.html.en to align it to the screen if that's the case, and then a regular HDMI. If it's proprietary then it might be even possible that Promethean didn't release documentation for Linux kernel developers to add it to mainline kernel, then there's nothing we can do except recommending to avoid this particular manufacturer.

https://support.prometheanworld.com/s/article/1623?language=en_US

The last thing I might recommend is using 20.04 LTS still, it's technically still supported until April. But overall, since this package is tools, I don't know if you really need it. Might be that just regular graphic tablet utilities are fine.

@merceroncode Thank you so much for this detailed and well articulated reply. This will be useful to many. 👍

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