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?

Bug #1898820 reported by Gurjas Singh Sehmbey
10
This bug affects 2 people
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/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Please help,
Thank you

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.27 [origin: unknown]
ProcVersionSignature: Ubuntu 5.4.0-49.53-generic 5.4.65
Uname: Linux 5.4.0-49-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 7 11:04:43 2020
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_IN:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.update-manager.release-upgrades: 2020-10-02T22:19:50.834355

Revision history for this message
Gurjas Singh Sehmbey (gurjas-singh-sehmbey) wrote :
summary: 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 upgrade, but when I typed ''apt update" , it showed
+ 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?
Revision history for this message
Chris Guiver (guiverc) wrote :

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".

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete
Revision history for this message
Gurjas Singh Sehmbey (gurjas-singh-sehmbey) wrote :

Thank you for your help.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-release-upgrader (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-release-upgrader (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.