Menu

#293 Ubuntu 17.04 crash at start

v1.0 (example)
open
None
5
2019-12-09
2017-04-07
Garyx
No

Hi David,

Thank you for PAC, it's been my go to worktool for years. I just tested installing it on the most current setup of Ubuntu 17.04 and I cannot get it to run. Here's a sample of what happens.

Btw I tested it in VM on both Ubuntu Gnome and classic with Unity. Same deal.

perl -d /usr/bin/pac

Loading DB routines from perl5db.pl version 1.49_05
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(/usr/bin/pac:22): $|++;
DB<1> c
PAC started (pac) with PID 5370
ERROR: PAC was unable to load any config file from '/home/user/.config/pac'... Now starting from scratch...Use of uninitialized value in string eq at /opt/pac/lib/PACConfig.pm line 672.
at /opt/pac/lib/PACConfig.pm line 672.
PACConfig::_updateGUIPreferences(HASH(0x555978e0d3c0)) called at /opt/pac/lib/PACConfig.pm line 195
PACConfig::_initGUI(HASH(0x555978e0d3c0)) called at /opt/pac/lib/PACConfig.pm line 104
PACConfig::new("PACConfig", HASH(0x555978d12b90)) called at /opt/pac/lib/PACMain.pm line 853
PACMain::_initGUI(PACMain=HASH(0x555975b371b8)) called at /opt/pac/lib/PACMain.pm line 282
PACMain::start(PACMain=HASH(0x555975b371b8)) called at /usr/bin/pac line 116
Signal SEGV at /opt/pac/lib/PACMain.pm line 282.
PACMain::start(PACMain=HASH(0x555975b371b8)) called at /usr/bin/pac line 116
Aborted (core dumped)

Discussion

  • Garyx

    Garyx - 2017-04-08

    Found some older bug that suggested to Vte.so from the local pac folder. This seems to work, PAC starts now. Will this have an effect later on?

    This will remove the file from the local installation.

    # find /opt/pac/ -name "Vte.so*" -exec rm {} +

     
    • mauro cendon

      mauro cendon - 2017-04-24

      thank you, you solved my day

       
  • Garyx

    Garyx - 2017-04-10

    Well no ssh connections work after removing Vte.so* files so that's not an option.

    Reinstating the files and having a better look now gave me the follwing errors.

    Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", at /usr/lib/x86_64-linux-gnu/perl5/5.24/Gtk2.pm line 126. Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", at /usr/lib/x86_64-linux-gnu/perl5/5.24/Gtk2.pm line 126. Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", at /usr/lib/x86_64-linux-gnu/perl5/5.24/Gtk2.pm line 126. PAC started (pac) with PID 4002 INFO: Used config file '/home/user/.config/pac/pac.nfreeze' Segmentation fault (core dumped)

    The Murrine error was fixed by installing gtk2-engines-murrine package.

    That left the Segmentation fault. Running perl -d /usr/bin/pac returned the following.

    `Loading DB routines from perl5db.pl version 1.49_05
    Editor support available.

    Enter h or 'h h' for help, or 'man perldebug' for more help.

    main::(/usr/bin/pac:22): $|++;
    DB<1> c
    PAC started (pac) with PID 4549
    INFO: Used config file '/home/user/.config/pac/pac.nfreeze'
    Signal SEGV at /opt/pac/lib/PACMain.pm line 282.
    PACMain::start(PACMain=HASH(0x5569dd2b5370)) called at /usr/bin/pac line 116
    Aborted (core dumped)`

    Hope this helps others.

     
  • Matthias

    Matthias - 2017-04-15

    I was able to fix this by applying commands of this post with some changes:

    1. apt install libglib2.0-dev libpango1.0-dev libvte-dev libvte-2.91-dev dh-make-perl
    2. dh-make-perl --cpan Gnome2::Vte --build
    3. sudo dpkg -i libgnome2-vte*.deb
    4. sudo find /opt/pac/ -name "Vte.so*" -exec rm {} +

    PAC is starting great and SSH connctions are working.

     
    ❤️
    1
    • Ken Haase

      Ken Haase - 2017-06-06

      This worked great, but I needed to also install libextutils-pkgconfig-perl and libextutils-depends-perl, i.e change (1) to
      1. apt install libglib2.0-dev libpango1.0-dev libvte-dev libvte-2.91-dev dh-make-perl libextutils-pkgconfig-perl libextutils-depends-perl,

      Is there a way to get this answer to float to the top? It would be helpful to whoever runs into this problem next.

      Thanks!

       
    • Tee Suri

      Tee Suri - 2017-10-15

      I'm running Ubuntu 17.04 but Step 3 didn't work for me, so I tried: sudo apt-get install libgnome* . Now it works! Thanks

       
  • Thom Michelbrink

    I was getting these errors:
    MakeMaker FATAL: prerequisites not found.
    ExtUtils::Depends not installed
    ExtUtils::PkgConfig not installed

    So I had to do..
    $ perl -MCPAN -e 'shell'
    $ install ExtUtils::Depends
    $ install ExtUtils::PkgConfig

    Once I got those installed I was able to proceed with step 2 and everything worked perfectly.
    Thanks for the fix Matthias!

     
  • Golgot

    Golgot - 2017-04-18

    Hi,
    Is there an update scheduled to solve this issue? I really prefer to avoid manual configuration to avoid issue for ... following updates.

    Regards

     
  • drsash

    drsash - 2017-04-19

    +1 on unity

    xxx@ OptiPlex-360:~$ pac
    PAC started (pac) with PID 21634
    INFO: Used config file '/home/xxxxx/.config/pac/pac.nfreeze'
    Speicherzugriffsfehler (Speicherabzug geschrieben)
    
     
  • mauro cendon

    mauro cendon - 2017-04-24

    im on ubuntu 17.04 with the pac issue, i followed Matthias steps and had the problems that Thom mentions... finally i get PAC gui running and SSH connections too.. thanks

     
  • drsash

    drsash - 2017-04-26

    I'm on Ubuntu-Budgie an fixed it with:

    I could fix it by forcing PAC to use my system library instead of the embedded one, by removing all Vte.so* from PAC:

    find /opt/pac/ -name "Vte.so*" -exec rm {} +

    The only error message shows up at start with:

    WARNING: Tray icon may not be available:
    If on Unity, try installing 'libgtk2-appindicator-perl' package.
    If on Gnome3 gnome-shell, you may need to install some extension like 'Evil Status Icon Forever' in order to be able to see PAC's tray icon.
    This message will not appear anymore.
    See tooltip of 'Preferences' -> 'PAC Main Options' -> 'Behaviour' -> 'At PAC Exit' -> 'Hide to tray instead of closing'
    You may reenable Tray icon options under 'Preferences'.
    

    I guess this is because of PAC not knowing Budgie.....but the tray icon seems to work.

    Sash

     
  • Ricky

    Ricky - 2017-05-15

    Matthias solution worked for me

     
  • Seb

    Seb - 2017-06-20

    Genio Matthias!

     
  • Eli Orzitzer

    Eli Orzitzer - 2017-07-24

    I had the same issue and used the tricks above.
    The program started but no any terminal window.
    After some digging I found that when opening it from terminal it works but when opening it from the UI (Ubuntu 17.04, Unity) it doesn't work and the Vte stuff (shared objects - so) isn't loaded at all.

    I don't know what is the difference between loading it from the terminal or using the UI.

    The solution was: istead of deleting the Vte.so file I replaced the Vte.so link to poing to the new one compiled by me:

    ln -s /home/eli/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Gnome2/Vte/Vte.so /opt/pac/lib/ex/vte64/auto/Gnome2/Vte/Vte.so
    

    Hope it will help someone.

     

    Last edit: Eli Orzitzer 2017-07-24
  • thijs van severen

    gave up on this but then i found Asbru (fork of PAC that is still maintained) and this solved my problems. I was able to import my PAC connections without any issues :-)
    https://www.asbru-cm.net/

     

Log in to post a comment.