ubuntu初始配置
vm下ubuntu安装vmtools 安装常用工具 ubuntu终端美化 安装ssh 使用apt安装时出现错误 解决办法
vm下ubuntu安装vmtools
sudo apt- get install open- vm- tools
sudo apt- get install open- vm- tools- desktop
安装常用工具
sudo apt- get install net- tools
sudo apt- get install gcc
sudo apt- get install g++
sudo apt- get install git
sudo apt- get install vim
ubuntu终端美化
zsh -- version
sudo apt update
sudo apt upgrade - y
sudo apt install zsh - y
chsh - s / bin/ zsh
sudo apt- get install curl - y
sh - c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
sh - c "$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
git clone https:
git clone https:
git clone -- depth= 1 https:
sudo apt install fonts- hack- ttf - y
vim ~ / . zshrc
ZSH_THEME= "powerlevel10k/powerlevel10k"
POWERLEVEL9K_MODE= "awesome-patched"
plugins= ( git zsh- autosuggestions zsh- syntax- highlighting)
source ~ / . zshrc
安装ssh
sudo apt- get install openssh- server
sudo systemctl enable ssh
使用apt安装时出现错误
E: Could not open lock file / var/ lib/ dpkg/ lock- frontend - open ( 2 : No such file or directory)
E: Unable to acquire the dpkg frontend lock ( / var/ lib/ dpkg/ lock- frontend) , are you root?
解决办法
sudo rm / var/ lib/ apt/ lists/ lock
sudo rm / var/ cache/ apt/ archives/ lock
sudo rm / var/ lib/ dpkg/ lock*
sudo dpkg -- configure - a
sudo apt update