openSUSE 安装 Anaconda3 之后出现Could not start D-Bus. Can you call qbus-qt5?

原创 2018年04月16日 12:33:31

openSUSE 安装 Anaconda3 之后出现Could not start D-Bus. Can you call qbus-qt5?

本来想学一下Python,就下了个Anaconda来玩。一路安装下来,安装的时候选择了将Anaconda添加到PATH中去,撸了一天代码也没有什么问题,结果第二天开机的时候就悲剧了:

Could not start D-Bus. Can you call qbus-qt5?
点确定就黑屏了。。。

系统版本:

lk@k:~> lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE project
Description:    openSUSE Leap 42.3
Release:        42.3
Codename:       n/a

Anaconda:

          conda version : 4.5.0
    conda-build version : 3.4.1
         python version : 3.6.4.final.0

身为linux小白的我各种搞来搞去最后发现只有当前用户是这样,也就是我lk这个用户。我仔细回忆了一下我昨天都干了什么,最后将问题定位到了Anaconda身上:莫不是你覆盖了系统自带的Python,软件版本不兼容然后就出问题了呢。昨天Anaconda除了安装了自己的文件,就只动了我系统的一样东西:.bashrc
打开.bashrc发现主要就是加了个PATH,但是它是把Anaconda放在最前面的。这样就会导致系统首先搜索到AnacondaPython

解决办法

home/lk/下的.bashrc给删了。
然后在/etc/profile里加上export PATH=$PATH:~/anaconda3/bin
注意了,一定要把$PATH放在前面。
重启系统就可以使用了。

结果

系统自带python2:

lk@k:/etc> python
Python 2.7.13 (default, Jan 03 2017, 17:41:54) [GCC] on linux2                                  
Type "help", "copyright", "credits" or "license" for more information.                          
>>>   

系统自带Python3:

lk@k:/etc> python3
Python 3.4.6 (default, Mar 22 2017, 12:26:13) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Anaconda-Python3:

lk@k:/etc> python3.6
Python 3.6.5 |Anaconda custom (64-bit)| (default, Mar 29 2018, 18:21:58) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

环境:

lk@k:~> conda info -a

     active environment : None
       user config file : /home/lk/.condarc
 populated config files : 
          conda version : 4.5.0
    conda-build version : 3.4.1
         python version : 3.6.4.final.0
       base environment : /home/lk/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/lk/anaconda3/pkgs
                          /home/lk/.conda/pkgs
       envs directories : /home/lk/anaconda3/envs
                          /home/lk/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.0 requests/2.18.4 CPython/3.6.4 Linux/4.4.120-45-default opensuse/42.3 glibc/2.22
                UID:GID : 1000:100
             netrc file : None
           offline mode : False

# conda environments:
#
base                  *  /home/lk/anaconda3

sys.version: 3.6.4 |Anaconda custom (64-bit)| (defaul...
sys.prefix: /home/lk/anaconda3
sys.executable: /home/lk/anaconda3/bin/python
conda location: /home/lk/anaconda3/lib/python3.6/site-packages/conda
conda-build: /home/lk/anaconda3/bin/conda-build
conda-convert: /home/lk/anaconda3/bin/conda-convert
conda-develop: /home/lk/anaconda3/bin/conda-develop
conda-env: /home/lk/anaconda3/bin/conda-env
conda-index: /home/lk/anaconda3/bin/conda-index
conda-inspect: /home/lk/anaconda3/bin/conda-inspect
conda-metapackage: /home/lk/anaconda3/bin/conda-metapackage
conda-render: /home/lk/anaconda3/bin/conda-render
conda-server: /home/lk/anaconda3/bin/conda-server
conda-skeleton: /home/lk/anaconda3/bin/conda-skeleton
conda-verify: /home/lk/anaconda3/bin/conda-verify
user site dirs: 

ALSA_CONFIG_PATH: /etc/alsa-pulse.conf
CIO_TEST: <not set>
CONDA_ROOT: /home/lk/anaconda3
MANPATH: /usr/local/man:/usr/share/man
PATH: /home/lk/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/lk/anaconda3/bin
PYTHONSTARTUP: /etc/pythonstart
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>
XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session1
XNLSPATH: /usr/share/X11/nls
版权声明:本文为博主原创文章,转载需注明文章来源:http://blog.csdn.net/Sino_Crazy_Snail https://blog.csdn.net/Sino_Crazy_Snail/article/details/79959075

KDE解决Could not start d-bus. Can you call qdbus?

最近linuxmint-kde更新,不知怎么进不去KDE桌面。弹出Could not start d-bus. Can you call qdbus 我尝试了 sudo apt-get install...
  • Wu_Roc
  • Wu_Roc
  • 2014-12-07 19:45:01
  • 2625

anaconda2和anaconda3共存,导致conda环境混乱,安装模块错误

CondaEnvironmentNotFoundError: Could not find environment: C:\ProgramData\Anaconda2\envs\anaconda3\e...
  • evillist
  • evillist
  • 2018-01-23 11:25:54
  • 593

VNC Could not install VNC Server: 1603

VNC Mirror Driver驅動與微軟遠端桌面(RDP)衝突所導致… 因為當初一開始是採用遠端桌面(RDP)的方式連線進入管理… 但這個Mirror Driver驅動無法在這個模式下安裝 所...
  • sinat_30171789
  • sinat_30171789
  • 2015-11-18 15:06:43
  • 2425

Error: 'conda' can only be installed into the root environment

从root里clone一个package,conda install的时候报错,这是因为环境是从root里clone过来的,把root里的一些包去掉就好了 source activate my-...
  • Lazybones_3
  • Lazybones_3
  • 2018-03-09 18:07:12
  • 67

安装mysql时 Could not start the service MySQL 解决方法

今天做的一些东西由于要用数据库,于是重新装了下mysql,
  • wangyang665
  • wangyang665
  • 2014-08-04 22:09:49
  • 621

MySQL5.5安装could not start ...error0问题

安装MySQL时无法启动服务(could not start the service MYSQL .Error:0)  方案一:转自http://zhidao.baidu.com/link?url=D...
  • CUGHCG
  • CUGHCG
  • 2015-12-09 00:22:49
  • 719

the catalog could not be loaded eclipse 报错

今天我安装eclipse的时候,从官网上下载下来了安装器,无法安装,给我报这个错误。 最后发现,竟然是被墙掉了,翻墙以后啥事没有了。...
  • qq_30100043
  • qq_30100043
  • 2016-11-25 21:31:39
  • 12392

The virtual machine could not start已解决

原文地址 关闭后无法启动,然后跳出对话框 The virtual machine could not start. Make sure VMware Workstation is inst...
  • tianxiawuzhei
  • tianxiawuzhei
  • 2012-07-11 21:31:10
  • 10571

Linux下Eric4开发,遇见“ could not start Qt-Designer”错误的解决办法

本人初学python开发,在ubuntu12.10下安装
  • a2806005024
  • a2806005024
  • 2014-06-13 10:55:33
  • 2859

启动ArcSDE服务报“Unable to start ArcSDE, Please check for zombie processes”的解决办法

今天接到一个用户的问题,在启动sdemon -o start 时出现“Unable to start ArcSDE, Please check for zombie processes” 。用户的A...
  • linghe301
  • linghe301
  • 2011-04-02 14:48:00
  • 5270
收藏助手
不良信息举报
您举报文章:openSUSE 安装 Anaconda3 之后出现Could not start D-Bus. Can you call qbus-qt5?
举报原因:
原因补充:

(最多只允许输入30个字)