gnome-terminal and some other commands cannot start in Ubuntu 18.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
In Ubuntu 18.04 after some time of usage, I got the following error when trying to start gnome-terminal:
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
File "/home/victor/.local/lib/python3.6/site-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: /home/victor/.local/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: g_interface_info_find_method
Similar error occurs also when I try to launch gnome-tweaks or execute the command add-apt-repository.
However, when I try to run gnome-terminal from "open in terminal" menu of nautilus, it started normally.
The same error occurs also if I try to do in python3:
from gi.repository import GLib
I will be grateful for any advice.
Here is an additional output related to python3 parameters:
$ type python3; readlink /usr/bin/python3
python3 is /usr/bin/python3
python3.6
$ echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/victor/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
Finally, I have found the cause of error. The library _gi.cpython-36m-x86_64-linux-gnu.so of python3.6 module gi depends on libgirepository-1.0.so from libgirepository1.0-dev package, but that dependence is not listed in the ELF header of the library. So, the workaround I have used is to add
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgirepository-1.0.so
to ~/.profile. However, I still don't understand, how may that happen and how to solve the problem in the right way. I am a novice in C programming and have found the solution after reading the excellent paper on library linking at http://www.kaizou.org/2015/01/linux-libraries/
python gnome-terminal shared-library
add a comment |Â
up vote
1
down vote
favorite
In Ubuntu 18.04 after some time of usage, I got the following error when trying to start gnome-terminal:
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
File "/home/victor/.local/lib/python3.6/site-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: /home/victor/.local/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: g_interface_info_find_method
Similar error occurs also when I try to launch gnome-tweaks or execute the command add-apt-repository.
However, when I try to run gnome-terminal from "open in terminal" menu of nautilus, it started normally.
The same error occurs also if I try to do in python3:
from gi.repository import GLib
I will be grateful for any advice.
Here is an additional output related to python3 parameters:
$ type python3; readlink /usr/bin/python3
python3 is /usr/bin/python3
python3.6
$ echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/victor/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
Finally, I have found the cause of error. The library _gi.cpython-36m-x86_64-linux-gnu.so of python3.6 module gi depends on libgirepository-1.0.so from libgirepository1.0-dev package, but that dependence is not listed in the ELF header of the library. So, the workaround I have used is to add
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgirepository-1.0.so
to ~/.profile. However, I still don't understand, how may that happen and how to solve the problem in the right way. I am a novice in C programming and have found the solution after reading the excellent paper on library linking at http://www.kaizou.org/2015/01/linux-libraries/
python gnome-terminal shared-library
Please post the output oftype python3; readlink /usr/bin/python3
.
â wjandrea
May 26 at 17:43
And post the output ofecho "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
â wjandrea
May 26 at 17:46
@wjandrea: Please, see the output in the edited post
â victor
May 26 at 19:43
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
In Ubuntu 18.04 after some time of usage, I got the following error when trying to start gnome-terminal:
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
File "/home/victor/.local/lib/python3.6/site-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: /home/victor/.local/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: g_interface_info_find_method
Similar error occurs also when I try to launch gnome-tweaks or execute the command add-apt-repository.
However, when I try to run gnome-terminal from "open in terminal" menu of nautilus, it started normally.
The same error occurs also if I try to do in python3:
from gi.repository import GLib
I will be grateful for any advice.
Here is an additional output related to python3 parameters:
$ type python3; readlink /usr/bin/python3
python3 is /usr/bin/python3
python3.6
$ echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/victor/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
Finally, I have found the cause of error. The library _gi.cpython-36m-x86_64-linux-gnu.so of python3.6 module gi depends on libgirepository-1.0.so from libgirepository1.0-dev package, but that dependence is not listed in the ELF header of the library. So, the workaround I have used is to add
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgirepository-1.0.so
to ~/.profile. However, I still don't understand, how may that happen and how to solve the problem in the right way. I am a novice in C programming and have found the solution after reading the excellent paper on library linking at http://www.kaizou.org/2015/01/linux-libraries/
python gnome-terminal shared-library
In Ubuntu 18.04 after some time of usage, I got the following error when trying to start gnome-terminal:
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
File "/home/victor/.local/lib/python3.6/site-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: /home/victor/.local/lib/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so: undefined symbol: g_interface_info_find_method
Similar error occurs also when I try to launch gnome-tweaks or execute the command add-apt-repository.
However, when I try to run gnome-terminal from "open in terminal" menu of nautilus, it started normally.
The same error occurs also if I try to do in python3:
from gi.repository import GLib
I will be grateful for any advice.
Here is an additional output related to python3 parameters:
$ type python3; readlink /usr/bin/python3
python3 is /usr/bin/python3
python3.6
$ echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/victor/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
Finally, I have found the cause of error. The library _gi.cpython-36m-x86_64-linux-gnu.so of python3.6 module gi depends on libgirepository-1.0.so from libgirepository1.0-dev package, but that dependence is not listed in the ELF header of the library. So, the workaround I have used is to add
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgirepository-1.0.so
to ~/.profile. However, I still don't understand, how may that happen and how to solve the problem in the right way. I am a novice in C programming and have found the solution after reading the excellent paper on library linking at http://www.kaizou.org/2015/01/linux-libraries/
python gnome-terminal shared-library
edited May 31 at 10:29
asked May 26 at 16:23
victor
634
634
Please post the output oftype python3; readlink /usr/bin/python3
.
â wjandrea
May 26 at 17:43
And post the output ofecho "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
â wjandrea
May 26 at 17:46
@wjandrea: Please, see the output in the edited post
â victor
May 26 at 19:43
add a comment |Â
Please post the output oftype python3; readlink /usr/bin/python3
.
â wjandrea
May 26 at 17:43
And post the output ofecho "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
â wjandrea
May 26 at 17:46
@wjandrea: Please, see the output in the edited post
â victor
May 26 at 19:43
Please post the output of
type python3; readlink /usr/bin/python3
.â wjandrea
May 26 at 17:43
Please post the output of
type python3; readlink /usr/bin/python3
.â wjandrea
May 26 at 17:43
And post the output of
echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
â wjandrea
May 26 at 17:46
And post the output of
echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
â wjandrea
May 26 at 17:46
@wjandrea: Please, see the output in the edited post
â victor
May 26 at 19:43
@wjandrea: Please, see the output in the edited post
â victor
May 26 at 19:43
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040640%2fgnome-terminal-and-some-other-commands-cannot-start-in-ubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please post the output of
type python3; readlink /usr/bin/python3
.â wjandrea
May 26 at 17:43
And post the output of
echo "$PYTHONPATH"; python3 -c 'import sys; print(sys.path)'
â wjandrea
May 26 at 17:46
@wjandrea: Please, see the output in the edited post
â victor
May 26 at 19:43