Results 1 to 5 of 5

Thread: Struggling with two issues, need clarification on what to do

  1. #1
    Join Date
    Oct 2024
    Beans
    2

    Struggling with two issues, need clarification on what to do

    Hello all, new user in peace.

    I should say at the outset that I am not an Ubuntu expert but I am doing my best to learn and improve.

    I have two issues with fixing two Ubuntu issues (ion an ASUS laptop, Windows 10 and runs on a Power Shell).

    After I do 'apt update' the following error messages show up:

    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?

    I've since been told many things on other forums about this, from 'OMG your Ubuntu is screwed, nothing can fix this at all' to 'just do a reboot' and 'enter sudo install -D -m755 /var/lib/dpkg && sudo apt-get update will solve this' as well as 'All you have to do is to run the previous command by adding sudo in front of it. Please DO NOT change directory permissions, at least at this stage.'

    It's annoying as I don't know who or what to believe, and none of the 'advice' comes from actual experts.

    Therefore, if anybody does 100% know how to solve these issues and can tell me what to type in to Ubuntu in order to fix it, I would be grateful if that person could tell me.

    To the best of my knowledge, I've not done anything that I shouldn't (such as delete a file etc.) but Windows has been acting up on the laptop quite a bit recently and my ESET NOD 32 Antivirus can slow it down as well.

    Many Thanks

    Veryconfused(dot)com

  2. #2
    Join Date
    Apr 2024
    Location
    Nova Scotia, Canada
    Beans
    77
    Distro
    Xubuntu 24.04 Noble Numbat

    Re: Struggling with two issues, need clarification on what to do

    You'll have to run the apt update and apt upgrade command with sudo.

  3. #3
    Join Date
    Sep 2007
    Beans
    Hidden!
    Distro
    Ubuntu Mate 24.04 Noble Numbat

    Re: Struggling with two issues, need clarification on what to do

    Code:
    sudo apt update
    UP THE IRONS!

  4. #4
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Struggling with two issues, need clarification on what to do

    If you open Software & Updates>Updates tab you may find that Ubuntu is set to Automatically Check for Updates> Daily. While that check is taking place if we run the sudo apt update command we will get an error message saying could not open lock file. We have to wait until the automatic check is finished. I just thought it might be useful for you know this in case you get this similar error message.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  5. #5
    Join Date
    Oct 2024
    Beans
    2

    Re: Struggling with two issues, need clarification on what to do

    Thanks for the help so far!

    I've managed to remove the offending file and hopefully a reboot and update will fix it.

    Fingers and other digits crossed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •