Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Bug #1964625 reported by Malane Nwenns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

Unable to lock the administration directory (/var/lib/dpkg/), are you root?

sherylphar@sherylphar-Lite:~$ sudo apt-get update
[sudo] password for sherylphar:
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://updates.signal.org/desktop/apt xenial InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://gb.archive.ubuntu.com/ubuntu focal-updates InRelease
Reading package lists... Done
sherylphar@sherylphar-Lite:~$ apt-get install -f
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?
sherylphar@sherylphar-Lite:~$
sherylphar@sherylphar-Lite:~$ apt-get install -f
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?
sherylphar@sherylphar-Lite:~$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
--2022-03-11 12:28:28-- https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Resolving dl.google.com (dl.google.com)... 2607:f8b0:4023:1006::5d, 2607:f8b0:4023:1006::88, 2607:f8b0:4023:1006::be, ...
Connecting to dl.google.com (dl.google.com)|2607:f8b0:4023:1006::5d|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83028384 (79M) [application/x-debian-package]
Saving to: ‘google-chrome-stable_current_amd64.deb.3’

google-chrome-stabl 100%[===================>] 79.18M 567KB/s in 2m 20s

2022-03-11 12:30:49 (580 KB/s) - ‘google-chrome-stable_current_amd64.deb.3’ saved [83028384/83028384]

sherylphar@sherylphar-Lite:~$ sudo apt install ./google-chrome-stable_current_amd64.deb
[sudo] password for sherylphar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sherylphar@sherylphar-Lite:~$ apt --fix broken install
E: Command line option --fix is not understood in combination with the other options
sherylphar@sherylphar-Lite:~$ apt -fix broken install
E: Command line option 'i' [from -fix] is not understood in combination with the other options.
sherylphar@sherylphar-Lite:~$

After a previous update I started getting this message:
The Package System Is Broken
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
Transaction failed: The package system is broken
 The following packages have unmet dependencies:

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.36
ProcVersionSignature: Ubuntu 5.11.0-27.29~20.04.1-generic 5.11.22
Uname: Linux 5.11.0-27-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Fri Mar 11 12:14:25 2022
InstallationDate: Installed on 2020-12-18 (448 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Malane Nwenns (sherylxxx) wrote :
affects: ubuntu-release-upgrader (Ubuntu) → ubuntu
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.