Ubuntu安装vim失败

...
//2022.17.54更新
//换了阿里的源之后再次报错

xxx@xxx-virtual-machine:~$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package vim
```

感觉可能是这个源的问题,你换个国内的镜像源试试

参考这个博客 https://blog.csdn.net/m0_46135899/article/details/116198053

换个apt源

执行 sudo apt-get update ,再安装,可以吗?
Ubuntu是什么版本的?

你换了安装源后有没有执行 执行 sudo apt-get update 命令进行更新