赞
踩
记录ubuntu18.04使用过程中遇到的问题,方便下次遇到快速解决。
问题1: C shared or static library ‘readline’ not found
解决方案:
sudo apt-get install libreadline-dev
问题2:ERROR: Dependency “libudev” not found, tried pkgconfig
解决方案:
sudo apt-get install libudev-dev
问题3:ERROR: Dependency “libsystemd” not found, tried pkgconfig
解决方案:
sudo apt-get install libsystemd-dev
问题4:输入法中没有中文
解决方案:
sudo apt-get install ibus-pinyin
问题5:Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
解决方案:说明之前使用apt时出现异常,没有正常关闭,还在运行,使用ps 和 grep查找apt的pid,并使用kill杀死掉。
ps afx|grep apt
sudo kill pid
pid为查询到的异常进程id。
按顺序执行以下shell命令:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
1 设置代理
#http代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
#https代理
git config --global https.proxy 'socks5://127.0.0.1:1080'
2 取消代理
#取消http代理
git config --global --unset http.proxy
#取消https代理
git config --global --unset https.proxy
sudo vim /etc/wgetrc
末尾追加内容:
http_proxy = http://127.0.0.1:7890
https_proxy = http://127.0.0.1:7890
use_proxy = on
wait = 15
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。