dpkg: permission denied creating dir in ./opt for installation
Does anyone know what would cause this from an "apt install brave-browser" command:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
brave-keyring libu2f-udev
The following NEW packages will be installed:
brave-browser brave-keyring libu2f-udev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/95.6 MB of archives.
After this operation, 286 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package brave-keyring.
(Reading database ... 439365 files and directories currently installed.)
Preparing to unpack .../brave-
Unpacking brave-keyring (1.12) ...
Preparing to unpack .../brave-
Unpacking brave-browser (1.36.112) ...
dpkg: error processing archive /var/cache/
error creating directory './opt/brave.com': Permission denied
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package libu2f-udev.
Preparing to unpack .../libu2f-
Unpacking libu2f-udev (1.1.10-1) ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
I get the same thing trying to install a cisco anyconnect deb package with dpkg -i.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Digitalw00t
- Solved:
- Last query:
- Last reply: