Pluma failed to launch


(Pasan Jayawickrama) #1

Briefly describe your issue below:
The default text editor Pluma won’t launch, it tries but after few seconds it stops launching process


What version of Parrot are you running? (include version, edition, and architecture)
Parrot 4.5 64-bit

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)
Debian GTK

Configured to multiboot with other systems? (yes / no)
Yes with windows 10

If there are any similar issues or solutions, link to them below:
I also used the command parrot-upgrade but yet it fails to launch.

If there are any error messages or relevant logs, post them below:

$pluma
Reading profile /etc/firejail/pluma.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid ####, child pid ####
Blacklist violations are logged to syslog
Child process initialized in 280.14 ms
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site


(Arclight) #2

I am getting the same issue. I even tried opening it with terminal but that didn’t workout. However, it works when opening it with root privileges.


(Arclight) #3

Okay I found a solution for you.

I removed pluma and other files completely using synaptic package manager and then downloaded pluma latest version .deb file from here:

https://pkgs.org/download/pluma

I then installed the .deb file using Gdebi and then did a reboot. Now pluma works perfectly even with general icon click and terminal both.

Hope This Helps You Out!!!


#5

what did you use to update your packages with?

What does your firejail pluma.profile say?


(Arclight) #6

For me, I updated the file using apt full-upgrade. After the upgrade I always reboot. I tried using pluma again and it said starting pluma but after some time nothing happens.
The only way pluma runs is using root terminal.


#7

how are you starting pluma via terminal or menu?

What does the firejail profile for pluma look like?


(Arclight) #8

How to access the firejail profile for pluma? And I tried both using menu and using non-root terminal to run pluma. Both didn’t work.


#9
cat /etc/firejail/pluma.profile

This will print the file to screen and you can copy and paste here or link on pastbin.

or you can open the file

sudo nano /etc/firejail/pluma.profile

(Arclight) #10
Firejail profile for pluma
# Description: Official text editor of the MATE desktop environment
# This file is overwritten after every install/update
# Persistent local customizations
include pluma.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.config/pluma

include disable-common.inc
include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc

include whitelist-var-common.inc

# apparmor - makes settings immutable
caps.drop all
machine-id
# net none - makes settings immutable
no3d
# nodbus - makes settings immutable
nodvd
nogroups
nonewprivs
#noroot
nosound
notv
nou2f
novideo
protocol unix
seccomp
shell none
tracelog

#private-bin pluma
private-dev
# private-etc fonts
#private-lib pluma
#private-tmp

memory-deny-write-execute
noexec ${HOME}
noexec /tmp

join-or-start pluma

(Arclight) #11

Pluma is not launching anymore. Please help


#12

remove the pluma you installed through deb and then

sudo apt install pluma

If you can’t run then run pluma from terminal and post what errors you get (from terminal and journalctl)


(Pasan Jayawickrama) #13

This cannot be fixed in this way. I think the problem is in configuration. So pluma failed to find $PYTHONHOME, I guess this is the root of error. But the case is python path has configured well. which python returns the correct path

$pluma
Reading profile /etc/firejail/pluma.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 4397, child pid 4398
Blacklist violations are logged to syslog
Child process initialized in 110.11 ms
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site


(Arclight) #14

Mine is also the same. It only opens when you are in a root terminal. Reinstalling fixes the problem temporarily but after some time its back to square one.

Reading profile /etc/firejail/pluma.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 1263, child pid 1264
Blacklist violations are logged to syslog
Child process initialized in 177.68 ms
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site

Parent is shutting down, bye…


(Rumy Taulu) #15

Got the same pluma error after I upgraded ParrotOS.

Here’s the solution :

  1. Open Mate Terminal
  2. sudo nano /etc/firejail/pluma.profile
  3. Uncomment (remove the # tag) :
    #private-lib pluma
  4. Save and Exit

That’s it.


(𝕵𝖚𝖆𝖓 𝕱𝖗𝖆𝖓) #16

Works like a charm, thanks rumytaulu !


(Arclight) #17

OMG Thank you so much. I reinstalled Parrot almost 3 times because of the error.


#18

Are you guys running parrot-security or parrot-home?


(Pasan Jayawickrama) #19

I use parrot-security


#20

I use home but if everyone here is on security that would explain why you guys get the error and I don’t


(Lorenzo "Palinuro" Faletra) #21

try to dist-upgrade the system, many things were fixed recently