I get error when sudo apt-get update how to resolve this problem ?

May 17, 2019 4.8k views
Linux Basics Linux Commands Ubuntu 16.04

it:1 http://ppa.launchpad.net/webupd8team/brackets/ubuntu xenial InRelease
Hit:2 http://eg.archive.ubuntu.com/ubuntu xenial InRelease

Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease

Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease

Hit:5 http://eg.archive.ubuntu.com/ubuntu xenial-updates InRelease

Hit:6 http://eg.archive.ubuntu.com/ubuntu xenial-backports InRelease

Hit:7 http://dl.google.com/linux/chrome/deb stable Release

Hit:8 https://deb.nodesource.com/node_12.x xenial InRelease

Hit:9 https://download.sublimetext.com apt/stable/ InRelease

Get:11 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]

Get:12 http://us.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]

Hit:13 http://packages.ros.org/ros/ubuntu xenial InRelease

Fetched 247 kB in 2min 6s (1,953 B/s)

Reading package lists… Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Unable to find expected entry ‘deb-src/source/Sources’ in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.

2 Answers

Hi, you can just edit your /etc/apt/sources.list file and remove the problematic repository. Then the apt update should go though as normal.

have you solved the issue ?
I have this error now and can’t overcome.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!