I am using Ubuntu 16.04 LTS.

Whenever I try to install updates using the terminal window, I get this error.

Also when I go into the Software Center there is software shown.

Please help.

| improve this question | | | | |

Sudo is working fine, you my guess is you edited /etc/apt/sources.list and have a typo.

Open an editor an comment out line 54

sudo nano /etc/apt/sources.list

Find line 54 and remove it

See also How to show line numbering in nano when opening a file for information on how to show and go to specific lines with nano.

If you need help, post the contents of the file, better line 54.

| improve this answer | | | | |
  • sudo apt-get update sudo apt-get install r-base r-base-dev ; Please help. – Harshvardhan May 11 '17 at 18:53
  • And how do I remove lines? – Harshvardhan May 11 '17 at 18:55
  • delete button or back space. Arrow keys to navigate – Panther May 11 '17 at 18:56

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.