Results 1 to 3 of 3

Thread: Can't update or install anything on my Ubuntu 22.04 machine

  1. #1
    Join Date
    Jan 2024
    Beans
    4

    Can't update or install anything on my Ubuntu 22.04 machine

    HELLO THERE!
    I am using Ubuntu 22.04 and recently i installed Genymotion on my machine.For few days my PC was working f9 but from last few days i am getting many errors.I can't open my terminal from the softwares,i have to go to a folder and open terminal there.Now when I use sudo apt update,i get many errors like:

    Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 3, in <module>
    import apt_pkg
    ModuleNotFoundError: No module named 'apt_pkg'
    Reading package lists... Done
    E: Problem executing scripts APT::Update:ost-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
    E: Sub-process returned an error code


    I searched the internet and i think it may be the problem with python.
    puthon version is 3.10.12

    please help @everyone
    it is driving me crazy
    Last edited by runtime989; March 15th, 2024 at 06:26 AM. Reason: extra info

  2. #2
    Join Date
    Feb 2024
    Beans
    28

    Re: Can't update or install anything on my Ubuntu 22.04 machine

    pls pls tell us you have a system restore...(timeshift) ?

  3. #3
    Join Date
    Jan 2024
    Beans
    4

    Re: Can't update or install anything on my Ubuntu 22.04 machine

    No i don't have??

Tags for this Thread

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
  •