Problems when trying to add a ppa
Hi altogether,
I use Bodhi Linux in a VM. These are the specs: Code:
uname -a 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 But here I encountered a problem. Terminal says: Code:
Traceback (most recent call last): Can anyone help? Tnx a lot in advance. Greetings Rosika :confused: |
That is certainly a mess.
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: So first thing I would try is Code:
sudo apt-get --reinstall install libapt-pkg5.0 |
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. |
Hello rbtylee,
thank you so much for yor help. It worked!!!!!! Youīre a genius. :hattip: 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:
I could add the respective repository with Code:
sudo add-apt-repository ppa:deki/firejail 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 |
Thanks and glad it worked :D
Quote:
|
Hi rbtylee,
thanks for getting back with the added information. To my shame I have to admit that Iīve never used "About Bodhi".:redface: I just did and thus I can confirm: my version is 4.5.0. Glad I know that as well now. Tnx again and have a nice day. Greetings. Rosika :) |
Hello there
Nice your issue has been solved. 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 Stefan |
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 To remove the "hold", just use the same command, but replace hold with unhold. |
@madmax25,
thanks for the hint. 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 a lot again and have a nice day. Greetings. Rosika :hattip: |
@the_waiter:
Hi Stefan, Quote:
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. Thanks and have a nice day. Greetings. Rosika :) |
Enjoy :)
|
All times are GMT -5. The time now is 11:07 PM. |