BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
uname -a
Linux rosika-virtual-machine 4.8.0-34-generic #36~16.04.1-Ubuntu SMP Wed Dec 21 18:54:55 UTC 2016 i686 i686 i686 GNU/Linux
The system should be up-to-date as I´ve performed an update just now.
I use firejail but the version of the repository is pretty much outdated. So I wanted to add:
Code:
sudo add-apt-repository ppa:deki/firejail
in the terminal.
But here I encountered a problem. Terminal says:
Code:
Traceback (most recent call last):
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>
import apt_pkg
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
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in appor
t_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/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>
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 don´t know what to make of it and how to remedy the situation.
Officially Bodhi does not recommend the usage of PPAs. Unless of course you know what you are doing.
As to the issue, I would think you have some sort of package conflicts going on here. You probably have the wrong versions of some important packages installed, however it happened. Now this is just a semi educated guess based on the error message posted above.
[You are probably using BL 4.5 so skip this if so ... See comment below]
Note I am going to assume you are using Bodhi 5.0, if not tell me:
OK, I have found out this is a known Bodhi linux 4.5 issue.
So assuming you are using bodhi linux 4.x and a system update has broken add-apt-repository. This is not your fault it is a package conflict with Bodhi 4.5 modified version of apt and the version of apt and python-apt stuff you updated to.
Bodhi 5.0 users are not going to have this issue.
Open synaptic and Force and lock the versions of these three packages: apt apt-util and libapt-pkg5.0. I used version 1.2.31 on all three. Now add-apt-repository should work.
I could fix this in Bodhi 4.5 repos but officially we no longer support BL 4.5 and advise users to update to BL 5.x.
OK One more thing to note: Lock version in synaptic doesn't work correctly in BL 4.x. This one is a Ubuntu issue. But note do not let apt-get update update the three packages above you forced the version of. Or if you do redo this process.
thank you so much for yor help. It worked!!!!!! You´re a genius.
First of all it´s comforting to know that I didn´t bring about the issue myself. I was already beginning to wonder.....
Then I did what you suggested:
Quote:
Open synaptic and Force and lock the versions of these three packages: apt apt-util and libapt-pkg5.0. I used version 1.2.31 on all three. Now add-apt-repository should work.
And it really did work!
I could add the respective repository with
Code:
sudo add-apt-repository ppa:deki/firejail
without any difficulties. After that I wanted to upgrade to the latest version of firejail (0.9.60-1~0ubuntu16.04.0).
At first the package was held back. Then I decided to go for "sudo apt-get dist-upgrade". That one worked perfectly and I now have the latest firejail-version.
So thanks again for your valuable help. I appreciate it very much.
Greetings.
Rosika
P.S.:
I could never figure out what BL-version I have. The only info I got is:
Code:
uname -a
Linux rosika-virtual-machine 4.8.0-34-generic #36~16.04.1-Ubuntu SMP Wed Dec 21 18:54:55 UTC 2016 i686 i686 i686 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Bodhi Linux
Release: 16.04
Codename: xenial
...
I could never figure out what BL-version I have. The only info I got is:
...
The simplest thing to do is open About Bodhi in the Menu. It tells the Bodhi version on the toolbar prob placed at the top and to the right. That is prob theme dependant tho, but the version should be there. If you are using a broken theme and it is not there switch to the default theme and it will be there.
I would also encourage you to install BL 5.0 as the repository is fully supported. Also you will be ready for upcoming BL 5.1 upgrade with hundreds of Moksha stability and security patches and new Bodhi features which are missing in BL 4.x
When you force and lock packages, you should "hold" them as well.
Otherwise they will be updated when you use the terminal for your next system updates.
Here's how you hold packages:
Code:
sudo apt-mark hold
followed by the name(s) of the wanted package(s).
To remove the "hold", just use the same command, but replace hold with unhold.
In fact I already noticed that force and lock won´t suffice by themselves.
As you said, after triggring an update/upgrade the respective packages will be updated. I set "sudo apt-mark hold" for them - as you suggested. Now it works perfectly fine.
Another thing I have learnt now in this fantastic Linux world.
Thanks for the suggestion. It certainly seems like a worthwhile step.
Yet I first have to "save up" for getting the ISO.
The thing is: My sole medium for internet-connection is a UMTS-stick which gives me 6 GB per month (or rather: 4 weeks). That translates roughly into 207 MB per day.
But I´ll certainly get BL 5.0 as I deem it a wonderful OS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.