LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   software-properties-gtk won´t start anymore (https://www.linuxquestions.org/questions/bodhi-92/software-properties-gtk-won%B4t-start-anymore-4175661213/)

Rosika 09-20-2019 10:42 AM

software-properties-gtk won´t start anymore
 
Hi altogether,

I´m using BodhiLinux 4.5.0 (in a VM) and have a bit of a problem:

When trying to start software-properties-gtk in the terminal I get the following message and it won´t start:


Code:

Traceback (most recent call last):
  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
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-i386-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time
reference
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-i386-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference

Original exception was:
Traceback (most recent call last):
  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
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-i386-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference

I had a similar problem (see https://www.linuxquestions.org/quest...56#post6002056 ) but I´m a bit at a loss at what to do now.

Could anyone help please?

Thanks a lot in advance.

Gretings.
Rosika :confused:

the_waiter 09-20-2019 01:50 PM

I am not using BL 4 (maybe I can find only one PC somewhere I installed). Anyway, I am trying to run software-properties-gtk on BL 5.0 (which is fully supported) and I see no problem.
Have you updated the repository?

Stefan

Rosika 09-21-2019 07:26 AM

Hi Stefan and thanks for your reply,

Yes, I have updated the repository. I even uninstalled the package with
Code:

sudo apt-get purge software-properties-gtk
and after that reinstalled it. But it all led to the same result. It´s a real shame.

The thing with BL 5.0 is: I´d like to keep 4.5.0 a little longer as I have lxd containers installed and configured. With a new install I´d have quite a bit of work on my hands.
I know I´ll have to do it sometime though.....:)

It seems there´s no simple solution to my problem at the moment. Thanks a lot anyway.

Greetings.
Rosika

Rosika 09-22-2019 06:29 AM

Hi again,

sorry for asking an additional question:

My original issue was to get software-properties-gtk running again, which seems to be a bit of a hassle with BL 4.5.0.
The main reason for wanting to run software-properties-gtk was to change the way the system looks for updates.

In software-properties-gtk there is a tab which says "Aktualisierungen", so basically updates. Here one can change "looking for updates": never, every other week, weekly, every other day or daily.

So basically do you know another method of changing this, perhaps command-line-based?

Thanks a lot again.

Greetings.
Rosika :)

ondoho 09-22-2019 07:27 AM

Quote:

Originally Posted by Rosika (Post 6038939)
Yes, I have updated the repository.

This is a little ambiguous.
Please run
Code:

sudo apt update
sudo apt upgrade

and show us the output.

Rosika 09-22-2019 07:45 AM

Hi ondoho and thanks for your reply,

here are the respective outputs:


Code:

rosika@rosika-virtual-machine ~> sudo apt update
OK:1 http://ppa.launchpad.net/deki/firejail/ubuntu xenial InRelease
OK:2 http://de.archive.ubuntu.com/ubuntu xenial InRelease
OK:3 http://ppa.launchpad.net/fish-shell/release-3/ubuntu xenial InRelease
Holen:4 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
OK:5 http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial InRelease
Holen:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Holen:7 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Ign:8 http://packages.bodhilinux.com/bodhi xenial InRelease
OK:9 http://packages.bodhilinux.com/bodhi xenial Release
Ign:10 http://packages.bodhilinux.com/bodhi xenial Release.gpg
Es wurden 325 kB in 1 s geholt (262 kB/s).
Error: Timeout was reached
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Alle Pakete sind aktuell.


Code:

rosika@rosika-virtual-machine ~> sudo apt upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  python3-lxc
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

Greetings.
Rosika

ondoho 09-22-2019 07:48 AM

OK. You can autoremove that one package.
Now re-install that other package - same error?

Rosika 09-22-2019 08:06 AM

@ ondoho:

I did what you suggested:

sudo apt autoremove and then sudo apt-get install --reinstall software-properties-gtk.
Alas it didn´t help. The error-message is the same as in my 1st post.

Cheers.
Rosika

ondoho 09-22-2019 08:11 AM

This is exactly the same error message as in your previous thread, so the solution is likely to be the same too.
Are the packages mentioned by rbtylee still on the versions they recommended you lock them to?

Rosika 09-22-2019 08:27 AM

@ ondoho:

No, the eror-messages aren´t exactly identical. Otherwise I wouldn´t have opened a new tread. Here are the differences:

Code:

diff veränderlich2.txt veränderlich.txt
2,6c2,4
<  File "/usr/bin/add-apt-repository", line 11, in <module>
<    from softwareproperties.SoftwareProperties import SoftwareProperties, shortc
< ut_handler
<  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py"
< , line 27, in <module>
---
>  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>
8,10c6,7
< ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-i386-linux-gnu.s
< o: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file liba
< pt-pkg.so.5.0 with link time reference
---
> ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-i386-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time
> reference
13,14c10
<  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in appor
< t_excepthook
---
>  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
30,32c26,28
<  File "/usr/bin/add-apt-repository", line 11, in <module>
<    from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
<  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in <module>
---
>  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>

Quote:

Are the packages mentioned by rbtylee still on the versions they recommended you lock them to?
I´ll check and tell you.
In the meantime thanks.

Rosika

Rosika 09-22-2019 09:02 AM

@ondoho:

SUCCESS!!!!!!

You were perfectly right. Thank you so much.

I really don´t know why. But the packages apt, apt-util and libapt-pkg5.0 were showing a newer version number (newer that the recommended 1.2.31).
I must have inadvertently set those packages to unhold. :banghead: But I can´t recollect it.

Now I have downgraded those packages to 1.2.32 (1.2.31 doesn´t seem to be available any more) but that works fine as well.
After that I locked them and set them to hold again.
Now software-properties-gtk opens up without any difficulties.

So the fault really seems to have been with me. So sorry to have bothered all of you. :redface:

But thank you all so much. Without your help it surely wouldn´t have occurred to me to look that up again.

Have a nice Sunday.

Many greetings.
Rosika :)


All times are GMT -5. The time now is 07:48 AM.