1

There's red circle with white minus sign in the middle that says that a problem has occured when checking for updates. I'm also unable to open "Software & Updates" and "Software Center". I have tried uninstalling and reinstalling the software-center, but it gives me this error when I try to open the software-center via terminal.

File "/usr/bin/software-center", line 140
    print time.time()
             ^
SyntaxError: invalid syntax

Appears to python2 code. Is it using python3 to interpret?

when i tried software-properties-gtk

it gave me this

  File "/usr/bin/software-properties-gtk", line 32, in <module>
    import aptsources
  File "/usr/lib/python3/dist-packages/aptsources/__init__.py", line 3, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

1 Answers1

0

Hey This quetion seems to have been answered here but try running

sudo apt-get install --reinstall python3-apt

The error is primarily because of library apt_pkg.cpython-35m-x86_64-linux-gnu.so not being present in /usr/lib/python3/dist-packages.

Removing and reinstalling should help.

If that doesn't work, I would recommend taking a dive into your system logs.

thank you @https://askubuntu.com/users/857799/vikas-kapdoskar in advance