一、网络搜索和自己摸索
1. 想通过软件中心安装vscode,打开左侧工具栏上的Ubuntu Software,里面的软件都是显示空白,搜vscode也没搜到。
通过网上的搜索和自己的一顿操作,问题算是解决了。什么原因还没有分析。记录如下:
sudo apt update
sudo apt upgrade
sudo systemctl reboot
software-properties-gtk
上面的software-properties-gtk命令是通过查看/usr/share/applications文件夹看到的。
software-properties-gtk命令打开Software & Updates后,改了几项,大概有Canonical Partners、All updates等。
再打开Ubuntu Software,可以搜到vscode了。
参考: