在 Windows 10 中安装的 ubuntu 中运行 sudo 命令时出错?

Error while runing sudo command in ubuntu installed inside Windows 10?

我的 ubuntu 18.04 从商店安装成功。之后我尝试了两个命令,如下所示

sudo apt update

Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Connection failed [IP: 91.189.88.152 80] Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease Connection failed [IP: 91.189.88.149 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Connection failed [IP: 91.189.88.161 80] Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Connection failed [IP: 91.189.88.149 80] Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Connection failed [IP: 91.189.88.149 80] W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 91.189.88.161 80] W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 91.189.88.149 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 91.189.88.152 80] W: Some index files failed to download. They have been ignored, or old ones used instead.

sudo apt install postgresql # Install PostgreSQL

Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package postgresql

我正在尝试使用 WSL ubuntu 在 windows 10 上开发 odoo12。我想在 windows 10 安装的 linux 子系统中安装 postgres 和 odoo 依赖项。请帮助我。

好的,问题出在卡巴斯基上,当我退出程序时,运行 bash 命令可以正常工作。我从这个 link

得到了答案

https://askubuntu.com/questions/1076242/running-sudo-apt-get-update-returns-connection-errors

谢谢大家的帮助