Menu

BUG v0.11: `Segmentation fault`

2017-10-02
2017-10-02
  • Ilya Ig. Petrov

    Ilya Ig. Petrov - 2017-10-02
    $ sudo apt install refind
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Starting pkgProblemResolver with broken count: 0
    Starting 2 pkgProblemResolver with broken count: 0
    Done
    The following packages were automatically installed and are no longer required:
      libuv1 linux-signed-image-generic-hwe-16.04
    Use 'sudo apt autoremove' to remove them.
    The following NEW packages will be installed:
      refind
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 3 780 kB of archives.
    After this operation, 5 301 kB of additional disk space will be used.
    Get:1 http://ppa.launchpad.net/rodsmith/refind/ubuntu xenial/main amd64 refind amd64 0.11.0-0ppa1 [3 780 kB]
    Fetched 3 780 kB in 5s (717 kB/s)      
    Preconfiguring packages ...
    Selecting previously unselected package refind.
    (Reading database ... 140977 files and directories currently installed.)
    Preparing to unpack .../refind_0.11.0-0ppa1_amd64.deb ...
    Unpacking refind (0.11.0-0ppa1) ...
    Processing triggers for man-db (2.7.5-1) ...
    Setting up refind (0.11.0-0ppa1) ...
    Installing rEFInd to the ESP...
    Generating a 2048 bit RSA private key
    .................................................+++
    ....................................+++
    writing new private key to '//etc/refind.d/keys/refind_local.key'
    -----
    ./refind-install: line 1213: 10125 Segmentation fault      "$Efibootmgr" -b $ExistingEntryBootNum -B &> /dev/null
    
    Progress: [ 66%]
    

    Notebook is Samsung NP305V5A, OS is KDE Neon Linux.

     
  • Roderick W. Smith

    That doesn't look like a bug in rEFInd or refind-install per se; it appears to be a bug in efibootmgr or something it depends on. That said, it's possible that refind-install has computed and is feeding an invalid entry to efibootmgr. Even so, a segfault should not result, but an installation failure might. I'd need more information to determine if that's the case. If you care to investigate, try this:

    1. Download the rEFInd .zip file from here.
    2. Unzip the .zip file.
    3. Replace the refind-install script in the .zip file with this version. (You may need to make it executable by typing chmod a+x refind-install in the directory where it resides after downloading it.)
    4. Run the refind-install script, as described in detail on the rEFInd installation page.

    As a workaround, you could try installing rEFInd from another OS or environment (including another Linux distribution or another version of the one you're using). You could also see if any updates are available to the efibootmgr package, and if so, install the updates.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.