1 Error when using gcp copy in linux
Error reported when using gcp copy in Linux.dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
zhihui@zhihui-MS-7B46:~/shl_proj/1_project$ cp -r /media/zhihui/sd/shl_dataset/ ./
Traceback (most recent call last):
File "/usr/bin/gcp", line 678, in <module>
gcp = GCP()
File "/usr/bin/gcp", line 190, in __init__
sessions_bus = dbus.SessionBus()
File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in __new__
mainloop=mainloop)
File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
zhihui@zhihui-MS-7B46:~/shl_proj/1_project$ vim ~/.bashrc
2 solutions
1. Modify the ~ /. Bashrc
file and add the following
alias cp='dbus-launch gcp'
2. Let the changes take effect
source ~/.bashrc
Then try copying it again!
Read More:
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- [Solved] Linux Error: Failed to start bean ‘webServerStartStop‘; nested exception is org.springframework.
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- Solutions to errors in installing xunsearch engine in centos8.0
- Linux Nagios failed to log in to internal server error (Fixed)
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- Grep: How to Find All the Files Containing a String in Linux
- How to Create Threads in Linux
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- /usr/bin/ssh-copy-id: ERROR: No identities found [How to Solve]
- stream copy error: reading from a closed fifo [How to Solve]
- [Solved] Go use zoom to connect DM database and start reporting error in Linux
- [Solved] Error in installing backups.lzma for Python on Linux
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘
- Restart and stop of nginx in Linux service
- Solution to gzip: stdin: invalid compressed data — format violated error in decompressing. Tgz file under Linux
- Parse error in ubantu/Linux system [How to Solve]
- Chinese garbled problem when running. C file in Linux
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files