Traceback (most recent call last): File "/usr/bin/firewall-cmd", line 24, in from gi.
如下:
[root@localhost conf]# firewall-cmd --query-port=8020/tcp
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in <module>
from gi.repository import GObject
ImportError: No module named 'gi
其實當輸入 firewall-cmd 系列的命令的時候都會報錯
[root@localhost gi-1.2]# firewall-cmd --query-port=8020/tcp
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in <module>
from gi.repository import GObject
ImportError: No module named 'gi.repository'
此時應該啟動或者檢視centos7的防火牆:systemctl start firewalld
還會報如下錯
Job for firewalld.service failed because a timeout was exceeded.See "systemctl status firewalld.service" and "journalctl -xe" for details.
此時,看我的這篇部落格:點選開啟連結
相關文章
- Traceback (most recent call last):AST
- Traceback (most recent call last): File "AttributeError: 'NoneType' object has no attribute 'group'ASTErrorNoneObject
- 爬蟲中經常出現Traceback (most recent call last):問題解決!!!爬蟲AST
- python升級帶來的yum異常:File "/usr/bin/yum", line 30Python
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- File "/usr/libexec/urlgrabber-ext-down", line 28
- mac下/usr/local/bin No such file or directory問題解決Mac
- /usr/bin/python與/usr/bin/env python的區別Python
- 解決 "last line of file ends without a newline" 警告的方法:使用 .editorconfigAST
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- /bin、/sbin、/usr/bin、/usr/sbin、/usr/local/sbin放置可執行檔案的區別
- [Most.js] Create Streams From Single Values With Most.jsJS
- /usr/bin/ld: cannot find -lopenblas
- linux輸入yum後提示: -bash: /usr/bin/yum: No such file or directory的解決方案Linux
- -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: b...Framework
- /usr/bin/expect的簡單使用
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- Sub-process /usr/bin/dpkg returned an error codeError
- You don't have write permissions for the /usr/bin directory.
- Authentication is required to run /usr/bin/x-terminal-emulator as rootUI
- 從 egg-bin 聊到 command line interface Tool
- Binary XML file line #2: Error inflatingXMLError
- 一分鐘看懂頭部 shell #!/usr/bin 命令
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- 關於/usr/bin/ld: cannot find -lXX的問題
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- Export/import Datas To/from a Csv FileExportImport
- code EACCESnpm ERR! syscall renamenpm ERR! path /usr/local/bin/webpack errno -13NPMWeb
- Unreal: Dynamic load map from Pak fileUnreal
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- (轉載)關於usr/bin/ld: cannot find -lxxx問題總結
- 記一次危險的操作——誤刪/usr/bin目錄
- Broker reports ORA-16858: last communication time from redo source could not beAST
- The last packet successfully received from the server was 2,625 milliseconds ago.ASTServerGo
- Can't open file: (errno: 24)
- 虛擬環境bin/python: bad interpreter: No such file or directoryPython
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary logMySqlASTErrorGo
- -bash: ./switch.sh: /bin/bash^M: bad interpreter: No such file or directory
- iOS開發除錯之報錯:Command /usr/bin/codesign failed with exit code 1iOS除錯AI