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

问题描述 投票:0回答:1

我的ubuntu 18.04从商店成功安装。之后我尝试了两个命令,它给出了如下错误

sudo apt update

错误:1 http://security.ubuntu.com/ubuntu仿生安全InRelease 连接失败[IP:91.189.88.152 80]错误:2 http://archive.ubuntu.com/ubuntu仿生InRelease连接失败[IP:91.189.88.149 80]错误:3 http://archive.ubuntu.com/ubuntu仿生更新InRelease连接失败[IP:91.189.88.161 80]错误:4 http://archive.ubuntu.com/ubuntu仿生 - backports InRelease 连接失败[IP:91.189.88.149 80]读取包列表...完成构建依赖关系树读取状态信息...完成所有包都是最新的。 W:无法获取http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease连接失败[IP:91.189.88.149 80] W:无法获取http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease连接失败[IP:91.189.88.161 80] W:无法获取http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease连接失败[IP:91.189.88.149 80] W:无法获取http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease连接失败[IP:91.189.88.152 80] W:某些索引文件无法下载。它们被忽略了,或者使用了旧的。

sudo apt install postgresql # Install PostgreSQL

读取包列表...完成构建依赖关系树读取状态信息...完成E:无法找到包postgresql

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

postgresql ubuntu windows-10 sudo ubuntu-18.04
1个回答
0
投票

好吧问题出在kaspersky上,当我退出程序并运行bash命令时,它可以工作。我从这个链接得到了答案

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

谢谢大家的帮助

© www.soinside.com 2019 - 2024. All rights reserved.