Hello, When I was in the process of installing the latest version of ubuntu 20.04.1 LTS , the process crashed. I restarted my system and then when I booted Ubuntu, it went fine. I was also able to install all updates and upgrades, but when I typed ''apt update" , it showed ''Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)'' . How can I give permission to this directory?
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ubuntu-release-upgrader (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
When I type "apt upgrade" in terminal, it showed, E: Could not open lock file /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
Please help,
Thank you
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.4.0-49-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 7 11:04:43 2020
PackageArchitec
ProcEnviron:
LANGUAGE=en_IN:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_IN
SHELL=/bin/bash
SourcePackage: ubuntu-
Symptom: release-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.

Thank you for taking the time to report this bug and helping to make Ubuntu better.
Bug reporting is mostly about finding & fixing problems thus preventing future users from hitting the same bug.
I suspect a Support site would be more appropriate, eg. https:/ /answers. launchpad. net/ubuntu. You can also find help with your problem in the support forum of your local Ubuntu community http:// loco.ubuntu. com/ or asking at https:/ /askubuntu. com or https:/ /ubuntuforums. org, or for more support options please look at https:/ /discourse. ubuntu. com/t/community -support/ 709
FYI: You need elevated privileges to run package tools, so the command needed to update your software lists is
`sudo apt update`
and to install upgraded packages
`sudo apt upgrade`
(or `sudo apt full-upgrade` to install all packages)
The `sudo` elevates your privileges.
I'm marking this as 'incomplete' as I don't see any problem, if you believe I'm in error, please leave a message explaining why, and you can change the status to "New".