This question already has an answer here:
- How to fix Duplicate sources.list entry? 25 answers
This has happened quite recently. I'm new with Ubuntu, and I'm not using dual boot so my PC only running on Ubuntu. I don't really notice what caused this.
First I can't get complete update, it says here, some index files failed to download. They have been ignored, or old ones used instead.
And then after I install Handbrake using its repository, I get this when I try to update with terminal, I don't remember but something about
/etc/lock. I try to look it up but didn't dare to try the methods as they're suggested to kill the lock.
Today I try to update again and I got this:
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ precise-security/restricted i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages)
So what should I do? Whenever I try to update, I get different responses; the lock problem, fail to download some index files, and just now this.
Besides, a few days recently whenever I turn on my PC, the screen says
cannot write bytes.
But then the login screen appears and I can use my pc as usual. So is it really bad if i can't update my pc forever? Because I can work without any problem.