0

I removed my /etc/apt/sources.list file by mistake. How can I generate it again?

Best regards

Raakh
  • 99
  • Thanks from the bottom of my heart – Raakh Jan 20 '24 at 12:24
  • sudo apt update -y output is: E: The repository 'http://extras.ubuntu.com/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. linux@dell:~$ – Raakh Jan 20 '24 at 12:31
  • why these appears – Raakh Jan 20 '24 at 12:32
  • 2
    Look at the output of ls /etc/apt/sources.list.d/ ... If any results are returned then that could be resulting from one of those ... rename those to any extension other than .list e.g. somefile.list.disabled and try again ... and you don't need -y with update as it's useless here. – Raffa Jan 20 '24 at 12:44
  • Done without any errors. Thanks again – Raakh Jan 20 '24 at 12:53

0 Answers0