13

I am getting a below error when I do

sudo apt-get update


Reading package lists... Done
W: The repository 'http://download.opensuse.org/repositories/home:    /Horst3180/xUbuntu_16.04  Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Can anyone tell what might be the issue

EDIT: Output of cat /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu xenial main
deb http://security.ubuntu.com/ubuntu/ xenial-security main
deb http://archive.ubuntu.com/ubuntu xenial-updates main
6
  • Please can you post the output of cat /etc/apt/sources.list?
    – Olimjon
    Jan 13, 2018 at 12:26
  • I was installing arc-theme recently, it worked fine though. Can that be a reason ?
    – Peter
    Jan 13, 2018 at 12:33
  • You have invalid sources.list and this is the case. You might have added some invalid PPAs to your list.
    – Olimjon
    Jan 13, 2018 at 12:35
  • cat /etc/apt/sources.list deb archive.ubuntu.com/ubuntu xenial main deb security.ubuntu.com/ubuntu xenial-security main deb archive.ubuntu.com/ubuntu xenial-updates main
    – Peter
    Jan 13, 2018 at 12:37
  • Please, post the output of the command as an edit, as you see comments cannot contain more than one line...
    – Olimjon
    Jan 13, 2018 at 12:51

1 Answer 1

24

First of all make sure that, this works:

sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update

If it did not work, count that, I did not found any other choice for you besides running

sudo apt-get update --allow-unauthenticated

This is a security risk, but if you are ready for this you can use --allow-unauthenticated flag for some other apt commands.

3
  • 2
    Deleting the two files before calling update works.
    – JMK
    May 12, 2018 at 18:47
  • worked like charm, will you explain what is happening :D
    – Vinujan.S
    Oct 21, 2018 at 18:55
  • 1
    @Vinujan.S, it just deletes other ppa entries from computer.
    – Olimjon
    Oct 25, 2018 at 0:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.