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://project-downloads.drogon.net/wiringpi-latest.deb
7.E: Package xxx has no installation candidate 问题
首先找到源下载地址
vi /etc/apt/sources.list
树莓派4安装库由于许多库不兼容,还有源地址更改需要添加源
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
保存退出后更新后再下载
apt-get update
apt-get upgrade
8.树莓派安装wiringpi
⽅法1:从官⽅获取deb包来安装
# 选择要保存的⽬录
# 下载deb包
wget https://project-downloads.drogon.net/wiringpi-latest.deb
# 安装deb包
sudo dpkg -i wiringpi-latest.de
⽅法2:从GitHub获取WiringPi源码来安装
git.drogon.net is currently unavailable.
执⾏以下命令,获取源码:
git clone https://github.com/WiringPi/WiringPi.git
进⼊刚下在完成的WiringPi⽬录
# 安装
./build
# 卸载
./build uninstall
9.注意,wiringpi有权限,在树莓派4B中但凡是调用wiringpi的文件一定要使用管理员命令,否则运行不成功会卡住。比如串口打开函数serialOpen();还有树莓派4B串口调换时注意系统版本有的系统版本不支持例如armv7,目前测试支持的是armf64系统,在此系统中配置时需要在根目录boot>config.txt中添加
dtoverlay=miniuart-bt.dtbo #miniuart-bt.dtbo是根目录下控制mini串口的文件在树莓派3B中为
pi3-miniuart-bt
enable_uart=1
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)