树莓派学习笔记(番外篇)——调试bug及解决办法

树莓派学习笔记(番外篇)——调试bug及解决办法,第1张

1.wget: unable to resolve host address ‘project-downloads.drogon.net’

无法解析主机地址

解决方法:

登入root(VPS)

/etc/resolv.conf

修改内容为下
nameserver 8.8.8.8 #google域名服务器
nameserver 8.8.4.4 #google域名服务器
2.

若安装文件出现"dpkg: dependency problems prevent configuration... "这样的错误, 是因为未关联本机的python包,

解决方法非常简单, 输入:

$ sudo apt-get install --reinstall python

$ sudo apt-get -f install

3.树莓派换源出现问题:

W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
解决办法:

添加公钥:

gpg --keyserver  keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E
gpg --export --armor  9165938D90FDDD2E | sudo apt-key add -

4.fatal: unable to access 'https://github.com/respeaker/seeed-voicecard.gi/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.

解决办法:

git config --global --unset http.proxy
git config --global --unset https.proxy

5.-bash: ./install.sh: Permission denied

解决办法:

chmod +x install.sh

6.树莓派在使用vi编辑文件时,发现退格删除键(Backspace键),无法删除,方向键变成了ABCD(对应上下右左)还自动换行如图:

原因:

此问题根因是树莓派系统预装的是vim-tiny版本,就是简易版,且默认是兼容模式。ubuntu系统也有相同的问题。下面提供的方法通用适用ubuntu。使用vim命令时提示命令不支持,是因为新系统默认装了vi,没有装vim。

解决:

 卸载重装vim full完整版

$sudo apt-get remove vim-common
$sudo apt-get install vim

如出现Package ‘vim’ has no installation candidate的报错,请更新软件列表

sudo apt-get update

 

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/717851.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-04-25
下一篇2022-04-25

发表评论

登录后才能评论

评论列表(0条)

    保存