LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 09-20-2019, 10:42 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Rep: Reputation: Disabled
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
 
Old 09-20-2019, 01:50 PM   #2
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 559

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
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
 
1 members found this post helpful.
Old 09-21-2019, 07:26 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Original Poster
Rep: Reputation: Disabled
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

Last edited by Rosika; 09-21-2019 at 07:49 AM.
 
Old 09-22-2019, 06:29 AM   #4
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-22-2019, 07:27 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,463
Blog Entries: 9

Rep: Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372
Quote:
Originally Posted by Rosika View Post
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.
 
Old 09-22-2019, 07:45 AM   #6
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-22-2019, 07:48 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,463
Blog Entries: 9

Rep: Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372
OK. You can autoremove that one package.
Now re-install that other package - same error?
 
Old 09-22-2019, 08:06 AM   #8
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Original Poster
Rep: Reputation: Disabled
@ 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
 
Old 09-22-2019, 08:11 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,463
Blog Entries: 9

Rep: Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372
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?
 
1 members found this post helpful.
Old 09-22-2019, 08:27 AM   #10
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Original Poster
Rep: Reputation: Disabled
@ 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
 
Old 09-22-2019, 09:02 AM   #11
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 235

Original Poster
Rep: Reputation: Disabled
@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. 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.

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] kali linux 2.0 sofware and update(software-properties-gtk) show error and won't open DIBS777 Linux - Software 2 11-03-2017 11:46 AM
NIC not installed anymore, KDE not installed anymore, LILO duplicate Volume ID error scottad Slackware 2 03-31-2012 12:13 AM
Python / Glade / GTK problem with accessing widget properties merville Programming 0 11-22-2007 08:23 PM
Admin properties won't open in Ubuntu 6.06.1 klarsin Linux - General 14 11-11-2006 01:43 PM
Updated libpng, now existing GTK prog won't start anymore - Rh9 rylan76 Linux - Software 1 05-12-2005 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration