apt-get error message

Linode Staff

W: Failed to fetch http://mirrors.linode.com/debian/dists/jessie-updates/InRelease Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)

any reason that I can solve at my end?

1 Reply

The issue is that Debian 8 is no longer providing jessie-updates, so that line needs to be commented out in the appropriate file.

First, run the following command:

sudo nano /etc/apt/sources.list

The following lines should be in that file:

deb http://mirrors.linode.com/ jessie/updates main
deb-src http://mirrors.linode.com/ jessie/updates main

deb http://mirrors.linode.com/debian jessie-updates main
deb-src http://mirrors.linode.com/debian jessie-updates main

What you'll want to do is put a '#' before each of those lines, which is how you comment them out. Once that's done, save and exit.

Here's a Stack Exchange article that gives a good explanation:

https://unix.stackexchange.com/questions/508724/failed-to-fetch-jessie-backports-repository/508728#508728

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct