LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   BL4.5-32bit - How to install grub-customizer? (https://www.linuxquestions.org/questions/bodhi-92/bl4-5-32bit-how-to-install-grub-customizer-4175660830/)

madmax25 09-12-2019 05:44 PM

BL4.5-32bit - How to install grub-customizer?
 
I just tried to install grub-cutomizer.
Not sure, if I need it, anyway, but I want to be sure, I got it when I need it.

When I tried to add the PPA, I got this message:
Quote:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
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
How can install this tool, now, please?

enigma9o7 09-12-2019 07:57 PM

i think you need to do a full update first? sudo apt update && sudo apt upgrade

I just installed grub customizer from that ppa on 32-bit a couple days ago myself without issue... but it was on bodhi 5.

madmax25 09-12-2019 08:21 PM

Sorry, it doesn't work that way for BL4.5-32bit.
Actually, I did a full update before.

colorpurple21859 09-12-2019 08:41 PM

did you run
Quote:

sudo apt upgrade

madmax25 09-12-2019 08:58 PM

Yes, I did.
Result:
0 updated, 0 installed, 0 removed and 0 not updated.

madmax25 09-12-2019 09:24 PM

The affected device is a dual boot netbook with BL4.5 and Xubuntu 18.04.3 (both of them 32bit).
That's why I have both systems in the grub menu and two entries for the advanced options, one for Bodhi and one for Ubuntu.

After removing some erroneous installed kernels from Xubuntu, I installed and updated grub again from there.

Then I got back to Bodhi and did the same because I wanted Bodhi to be my main system on the netbook, again.

Now, everything is ok in the advanced options of the Bodhi part of the menu,
but in the according section of the Ubuntu part there are three entries referring to Bodhi.

These are:

Quote:

Bodhi Linux (16.04) (on /dev/sda5) (on /dev/sda3)
Bodhi Linux GNU/Linux, with Linux 4.15.0-60-generic (on /dev/sda5) (on /dev/sda3)
Bodhi Linux GNU/Linux, with Linux 4.15.0-60-generic (recovery mode) (on /dev/sda5) (on /dev/sda3)
Yes, these entries are really pointing to two partitions, which of course is nonsense and that's why I want to get rid of them.

To do this, I need grub-customizer, or is there a way to do without that tool?

EDIT:
I've got it!
I had to compile the tool according to this guide.
After that, I edited the launcher of grub-customizer by adding gksudo between the EXEC= and grub-customizer.
Besides that, I edited the path to the icon into
Code:

/usr/share/icons/hicolor/32x32/apps/grub-customizer.svg
(48x48 did not work properly, because it gave me the wrong icon in the Engage bar during the start of the tool.)
Finally, I reduced the height of the tool's window (with remembering and blocking position and size of this window),
because first, the edges were beyond my screen, which has only 1024x600.
Finally, I was able to remove the unwanted entries of the grub.

So, I guess, this topic is sorted out, now.


All times are GMT -5. The time now is 12:30 PM.