我正在使用 Ubuntu 18.04。
我将/etc
文件夹重命名为apache2
. 那是我最大的错误
现在我无法重命名它,因为我需要使用sudo
,但是当我尝试时出现错误
sudo: unknown uid 1000
我该如何解决这个问题?我没有可以启动的实时系统,并且在恢复模式下,根终端打开但然后关闭说cannot open password database
.
当我尝试使用命令在 Ubuntu 18.04 中安装 Apache 时sudo apt install apache2
,我得到:
E: Distorted line 2 in the sources list /etc/apt/sources.list.d /official-package-repositories.list
E: The list of sources is not read.
E: Distorted line 2 in the sources list /etc/apt/sources.list.d/official-package-repositories.list
第二行包含单词universe
。删除后,我得到:
The apache2 package is not available, but is listed in the dependency list of another package.
E: No installation candidate found for the “apache2” package.