Tag:

什么会导致python中缺少“gi”模块?

在Ubuntu中对默认Python版本进行了一些不那么聪明的编辑后,从2.7到3.2,我最终破坏了整个系统。 在我的计算机崩溃并且一切都停止工作后,我试图恢复我的更改(通过将/usr/bin/python2.7链接到/ usr / bin / python并将/ usr / share / python / debian_defaults中的默认版本更改回2.7)但有些事情仍然存在。 例如,当我在python解释器中键入“import gi”时,我收到以下消息: >>> import gi Traceback (most recent call last): File “”, line 1, in ImportError: No module named gi >>> 某些程序也会出现错误(例如:gnome tweak tool)。 我曾尝试从软件中心和来源重新安装python,但同样的错误仍然存​​在。 Python – 版本现在返回: Python 2.7.2 还有一些依赖于python 2.7的软件包现在正在运行(例如软件中心),但有些东西仍然存在。 有什么办法可以完全重新安装python 2.7作为默认版本吗?

Ubuntu 64位Machinarium:加载共享库时出错:libgtk-x11-2.0.so.0

我刚刚下载了Ubuntu 13.10最终测试64位,我使用的每个程序都完美无缺,除了“Machinarium”这个非常酷的Flash游戏。 游戏没有.deb包,我曾经能够播放它。 我尝试安装lib32和ia32,它说它安装到最后一个版本,或者如果我尝试lib32-dev,它说不再可用。 这是我的ldd命令结果: fz@Unknown:~/Games/Machinarium$ ldd Machinarium linux-gate.so.1 => (0xf77c8000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf76c0000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf76a5000) libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf756f000) libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf755c000) libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0xf7500000) libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7461000) libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf7427000) libgtk-x11-2.0.so.0 => not found libgdk-x11-2.0.so.0 => not found libatk-1.0.so.0 => not found libgdk_pixbuf-2.0.so.0 => not found […]

如何在Ubuntu 64位上获得32位版本的库?

我正在尝试编译一个使用谷歌的V8库(32位)的程序。 因此,我在程序中使用的任何库也必须是32位。 哪里可以在Ubuntu 64位上下载32位版本的库? 更具体地说,我正在寻找libnotify 32位版本。 这是我现在遇到的错误: g++ -o shell -m32 shell.o -L../v8 -lv8 -lpthread `pkg-config –libs libnotify glib-2.0` /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libnotify.so when searching for -lnotify /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libnotify.a when searching for -lnotify /usr/bin/ld: skipping incompatible /usr/lib/libnotify.so when searching for -lnotify /usr/bin/ld: skipping incompatible /usr/lib/libnotify.a when searching for -lnotify /usr/bin/ld: cannot find -lnotify […]

如何在Ubuntu16.04上安装libboost_version1.59或更新版本

我该如何安装libboost1.59? 我已经尝试了很多方法来安装它,但无法将我的Ubuntu 16.04上的1.58版更新到1.59版。 我在StackOverflow上尝试了这个和这个 , 这是在linuxfromscratch.org和这篇博客文章中 谁能给我一个有效的方法?

php和php7.2包有什么区别?

我要安装它们和它的两个模块吗? apt-cache depends php php Depends: php7.2 php cli有两个包: apt-cache policy php7.2-cli php7.2-cli: Installed: (none) Candidate: 7.2.7-0ubuntu0.18.04.2 Version table: 7.2.7-0ubuntu0.18.04.2 500 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 7.2.3-1ubuntu1 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages 下一个: apt-cache policy php-cli php-cli: Installed: (none) Candidate: 1:7.2+60ubuntu1 Version table: 1:7.2+60ubuntu1 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 […]

Ubuntu 12.04.5 64bit没有/ usr / lib64 /?

我目前正在尝试根据一些教程在XEN Hypervisor上设置domU。 我的XEN安装在Ubuntu 12.04.5 Server x64 bit ..(全新安装) 我找不到/usr/lib64只有/usr/lib和/usr/lib32存在.. 为什么会发生这种情况,因为我的Ubuntu是x64位? 提前致谢

在ubuntu上安装ansible

我正在按照此文档安装ansible: https ://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-14-04 我试着在我的ubuntu存储库列表中添加ansible,但这是发生的事情: me@mydev:~/Documents$ sudo apt-add-repository ppa:ansible/ansible Cannot add PPA: ‘ppa:~ansible/ubuntu/ansible’. ERROR: ‘~ansible’ user or team does not exist. me@mydev:~/Documents$ 我也尝试过克隆repo(遵循这些说明: http : //docs.ansible.com/ansible/intro_installation.html )但是失败了以下内容: me@mydev:~/Documents/ansible$ git clone git://github.com/ansible/ansible.git –recursive Cloning into ‘ansible’… fatal: unable to connect to github.com: github.com[0: 192.30.252.131]: errno=Connection timed out me@mydev:~/Documents/ansible$ ping 192.30.252.131 PING 192.30.252.131 (192.30.252.131) 56(84) bytes of data. […]

Kobo Desktop安装问题

我正在尝试在Ubuntu 16.04中安装Kobo Desktop阅读器,但没有成功。 我也关注这个话题如何在Ubuntu上安装Kobo Desktop? 我实际上设法安装,但它没有运行,我试图在终端运行它,但我得到 /usr/local/Kobo/Kobo: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory 有人设法安装并成功运行? 如果不再使用它的可能性,有一些替代软件?

“您缺少以下32位库,并且Steam可能无法运行:libc.so.6”常见修复不起作用,

所以我知道这是一个经常被问到的问题,但我尝试了一堆没有成功的解决方案。 我正在运行Ubuntu 12.04(64位),我昨天刚安装它。 这是我第一次使用linux。 错误是:您缺少以下32位库,并且Steam可能无法运行:libc.so.6 我尝试过的事情。 首先,我从steam网站下载了。 我卸载了它,并再次尝试从ubuntu软件中心。 sudo apt-get update sudo apt-get install ia32-libs sudo apt-get upgrade 这安装了一堆32位库,但没有解决问题。 这似乎是大多数人的主要解决方案。 直接的方法 sudo apt-get install libc.so.6 返回: Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package libc.so.6 E: Couldn’t find any package by regex ‘libc.so.6’ 我猜libc.so.6不是一个包,只是一个文件或什么? 我也试过了 gksudo gedit […]

如何安装gio-unix-2.28.0

当我安装应用程序(libvirt-sandbox-0.1.2)时,我收到此消息: configure: error: Package requirements (gio-unix-2.0 >= 2.28.0) were not met: No package ‘gio-unix-2.0’ found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GIO_UNIX_CFLAGS and GIO_UNIX_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. 如何安装这个库?