我已经完成了:sudo apt update
但是当我这样做时sudo apt upgrade,我得到:
The following packages have unmet dependencies:
perl-modules-5.22 : Conflicts: perl-modules
Conflicts: perl-modules:i386
Run Code Online (Sandbox Code Playgroud)
我试过了:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get install --reinstall perl-modules-5.22
sudo apt-get clean
Run Code Online (Sandbox Code Playgroud)
不能,sudo do-release-upgrade直到我解决这个问题。
如何解决 Perl 冲突?
谢谢!
我们现在一直在使用 Ubuntu 18.04 服务器,我们对此感到满意,因为这个版本满足了我们的所有要求。除非有重要的事情,否则不想更改此操作系统。
我们还计划最近在其他系统上安装 Ubuntu 18.04,这需要一段安静的时间。即使 Ubuntu 18.04 LTS 支持于 2023 年结束,这还会成为问题吗?
我们之前也尝试过升级到 19,但我们想要的要求很少在更新版本中不起作用。所以我们坚持使用 18.04。请帮助我们提供一些信息。
我正在使用 Ubuntu 20.04,并且有一个包名称列表,我想检查它是否是默认 Ubuntu 存储库的一部分。
到目前为止,我正在使用以下脚本迭代列表并进行检查:
#!/bin/bash
input="modified_list.txt"
RED='\033[0;31m'
NC='\033[0m'
if [ ! -f $input ];
then
echo -e "file does not exist: $input"
exit 1
fi
while read -r line
do
if [[ $(apt policy $line 2> /dev/null | grep 'focal' | wc -l) -gt 0 ]];
then
# print package name normal if part of ubuntu default repo
echo -e "$line\t"
else
# print package name red if not in default repo
echo -e "${RED}${line}${NC}"
fi
done < …Run Code Online (Sandbox Code Playgroud) 能够使用sar或其他工具获取 Ubuntu Server 中 4 月 11 日运行的进程列表。
当尝试在容器中运行任何命令时(例如docker exec -it <container-name> /bin/sh),我收到以下错误:
OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown
Run Code Online (Sandbox Code Playgroud)
我已经安装了docker默认docker compose的 ppa。我尝试了这些线程1 2中的所有建议,但没有帮助。有人可以帮助我吗?我该怎么办,如何调试?
在 Ubuntu 20.04 上一切都很好,但由于一些致命的故障,我昨天不得不重新安装它。
真是愚蠢的问题,Ubuntu 20,我安装了 apache2,没有太多其他的。我想要sudo visudo /etc/hosts添加一个别名“dummy.com”域别名作为指向服务器的黑客,仅用于本地测试学习网站,我得到了这个不寻常的结果
>> /etc/hosts: syntax error near line 1 <<<
>>> /etc/hosts: syntax error near line 2 <<<
>>> /etc/hosts: syntax error near line 5 <<<
>>> /etc/hosts: syntax error near line 6 <<<
>>> /etc/hosts: syntax error near line 7 <<<
>>> /etc/hosts: syntax error near line 8 <<<
>>> /etc/hosts: syntax error near line 9 <<<
What now? Q
Run Code Online (Sandbox Code Playgroud)
我删除了该127.0.0.1 localhost notmydomain.com行,所以现在这是我的文件,为什么每当我编辑它时它都会出现如上所述的语法错误?
conrad@conrad-VirtualBox:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 conrad-VirtualBox
# The …Run Code Online (Sandbox Code Playgroud) 我目前在我的机器上使用 Ubuntu 20.04。
20.04 ×2
bash ×2
server ×2
18.04 ×1
apt ×1
command-line ×1
dependencies ×1
docker ×1
file-sharing ×1
filesystem ×1
hosts ×1
localhost ×1
partitioning ×1
performance ×1
perl ×1
ppa ×1
process ×1
scripts ×1
sftp ×1
storage ×1
sudo ×1
system ×1
upgrade ×1
visudo ×1