Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 897  / 3 Years ago, sun, september 12, 2021, 6:31:45

I don't know why, but after installing some programs there's been a mistake in the terminal. So then every time when I update or trying to install a new package through terminal in the end a mistake appears:



W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ trusty/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_trusty_partner_binary-i386_Packages)
W: Duplicate sources.list entry http://repo.yandex.ru/yandex-disk/deb/ stable/main i386 Packages (/var/lib/apt/lists/repo.yandex.ru_yandex-disk_deb_dists_stable_main_binary-i386_Packages)
W: You can do «apt-get update» to correct a mistake.


But When I write apt-get update then it says this:



E: Failed to open a blocked file /var/lib/apt/lists/lock - open (13: Access denied)
E: Impossible to block catalog /var/lib/apt/lists/
E: Failed to open a blocked file /var/lib/dpkg/lock - open (13:Access denied)
E: Failed to block the lead catalog (/var/lib/dpkg/); Do you have the rights of superuser?

More From » 14.04

 Answers
2

Deleted two same sources from Other Software and it worked.


[#25331] Sunday, September 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kroapathe

Total Points: 445
Total Questions: 117
Total Answers: 99

Location: Botswana
Member since Sun, Sep 19, 2021
3 Years ago
;