Results 1 to 5 of 5

Thread: Trouble updating kali

  1. #1
    Join Date
    2020-Apr
    Posts
    1

    Trouble updating kali

    i have tried to update kali linux using different commands but this is what it shows:Capture3.jpgAlso I'm unable to uninstall the /var/lib/apt/lists/lock because it is a directory.Also "sudo" commands are not working.
    In case the image is not viewable ,this may help:

    kali@kali:~$ apt update
    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)

    kali@kali:~$ apt-get update
    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)


    kali@kali:~$ apt-get upgrade
    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?


    kali@kali:~$ apt update
    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)


    kali@kali:~$ apt update && apt upgrade
    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)

    Please help me to remove these 4 problems.

  2. #2
    Join Date
    2020-Apr
    Posts
    4
    try to:
    apt-get autoremove
    apt-get remove
    apt-get autoclean
    apt-get clean

    after that try to update your system..

  3. #3
    Join Date
    2020-Jun
    Posts
    2
    @maste-mind

    try to do as per the your instructions but not working at all can please help us out to fix the issue asap....

  4. #4
    Join Date
    2020-Jun
    Posts
    2
    [QUOTE=master-mind;93141]try to:
    apt-get autoremove
    apt-get remove
    apt-get autoclean
    apt-get clean


    @ Team :

    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)

    this CLI command is not working can anyone help us out with the alternate solutions. ASAP....

  5. #5
    Join Date
    2020-Jun
    Posts
    1

    i have been trying to install the vboxguest additions

    Quote Originally Posted by master-mind View Post
    try to:
    apt-get autoremove
    apt-get remove
    apt-get autoclean
    apt-get clean

    after that try to update your system..

    i tried to install the vbox guest additions and after messing it up the first time i tried to use this to start over its stil shwing this error

Similar Threads

  1. Trouble updating wpscan
    By ralle in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-09-11, 23:41
  2. Trouble updating kernel headers
    By simoneeva in forum TroubleShooting Archive
    Replies: 9
    Last Post: 2016-05-16, 06:04
  3. Trouble updating
    By acron in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2015-12-13, 08:40

Tags for this Thread

Posting Permissions

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