Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » Linux Error 13: Permission denied, are you root
  • MSIEXEC returned 1602
    Fix MSIEXEC returned 1602: Trellix Setup cannot use this account Windows Server
  • screenshot 2020 04 09 at 02.57.27
    Import certificates into Trusted Root and Personal certificate store Windows Server
  • WinReg
    Unable to import Windows Reg File: The specified file is not a registry script Scripts
  • Explorer Error
    How to fix an attempt was made to reference a Token that does not exist Network | Monitoring
  • Protech Synology NAS
    Cybersecurity Tips to Secure Synology NAS against Ransomware Reviews
  • lampstack feature lamp stack ubuntu
    How to Install LAMP Stack on Ubuntu 18.04 Linux
  • adac
    Enable Active Directory Recycle Bin: How to delete and restore objects using Active Directory Administrative Center Windows Server
  • CAL Removal
    How to Remove and Manage RDS Licenses Web Server

Linux Error 13: Permission denied, are you root

Posted on 29/05/201612/08/2023 Christian By Christian No Comments on Linux Error 13: Permission denied, are you root
Linux error

This Linux Error 13 error simply means you are not the root user.

me@linuxbox ~#apt-get update
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Solution
simply install it using the sudo to install any package as a root user.
This occurs because you are using a normal user account

The encountered error message, “E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied),” typically occurs when trying to perform package management tasks in Linux without the necessary root privileges. This issue, often denoted as “Linux Error 13,” indicates that the system is preventing access to the essential dpkg lock file, which is crucial for managing software packages.

To resolve this error, ensure that you have superuser privileges by using the “sudo” command before the package management operation. For instance, you can employ the following command: “sudo apt-get update” to refresh the package list. By appending “sudo” to your package management commands, you gain the necessary authorization to access system files and overcome the permission denied obstacle.

Remember, maintaining proper permissions is vital for a secure and stable Linux system. So, whenever you encounter “Linux Error 13,” simply prepend “sudo” to your package management commands to ensure successful execution.

You forgot the sudo for the second command.
me@linuxbox ~#sudo apt-get update && sudo apt-get upgrade will work.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux Tags:errors, Linux distro, Permission

Post navigation

Previous Post: How to extend Proxmox Local Container Storage
Next Post: How to remove Recent vSphere Client Connections

Related Posts

  • fba7f screenshot 2019 04 15 at 18.33.30
    File System Overview: How to decide on the right File System to use for your USB Linux
  • feature photo terraform
    How to install Amazon RDS using Terraform Linux
  • ClamAV
    How to install and manage ClamAV and ClamTK on Ubuntu Linux Anti-Virus Solution
  • Screenshot 2020 05 14 at 17.47.09
    Configure OpenSSH Server: A Quick Guide Linux
  • On ubuntu mariadb
    How to install MariaDB on Ubuntu Linux
  • screenshot 2020 04 23 at 00.30.09
    How to mount a USB Drive in Linux Linux

More Related Articles

fba7f screenshot 2019 04 15 at 18.33.30 File System Overview: How to decide on the right File System to use for your USB Linux
feature photo terraform How to install Amazon RDS using Terraform Linux
ClamAV How to install and manage ClamAV and ClamTK on Ubuntu Linux Anti-Virus Solution
Screenshot 2020 05 14 at 17.47.09 Configure OpenSSH Server: A Quick Guide Linux
On ubuntu mariadb How to install MariaDB on Ubuntu Linux
screenshot 2020 04 23 at 00.30.09 How to mount a USB Drive in Linux Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • MSIEXEC returned 1602
    Fix MSIEXEC returned 1602: Trellix Setup cannot use this account Windows Server
  • screenshot 2020 04 09 at 02.57.27
    Import certificates into Trusted Root and Personal certificate store Windows Server
  • WinReg
    Unable to import Windows Reg File: The specified file is not a registry script Scripts
  • Explorer Error
    How to fix an attempt was made to reference a Token that does not exist Network | Monitoring
  • Protech Synology NAS
    Cybersecurity Tips to Secure Synology NAS against Ransomware Reviews
  • lampstack feature lamp stack ubuntu
    How to Install LAMP Stack on Ubuntu 18.04 Linux
  • adac
    Enable Active Directory Recycle Bin: How to delete and restore objects using Active Directory Administrative Center Windows Server
  • CAL Removal
    How to Remove and Manage RDS Licenses Web Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.