问题:Ubuntu系统执行apt install openjdk-8-jdk
安装jdk8报错
root@2b6d781ebc36:/# apt install openjdk-8-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
debianutils : Breaks: x11-common (
解决:
方案一:修改源
#备份文件
cp /etc/apt/sources.list /etc/apt/sources.list-$(date +%Y%m%d)
#修改源
sed -i 's/focal/jammy/g' /etc/apt/sources.list
sed -i 's/focal/jammy/g' /etc/apt/sources.list.d/*.list
apt-get update
#重新执行安装命令安装成功
apt install openjdk-11-jre
方案二:aptitude
方式解除依赖并安装
#如果没有"aptitude"这个命令,直接安装
sudo apt-get install aptitude
# 通过aptitude安装包
sudo aptitude install
是否接受该解决方案?[Y/n/q?]
#输入 Y
#随后开始安装
例如: 通过aptitude 安装openjdk-8
sudo apt-get install aptitude
sudo aptitude install openjdk-8
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: 如何让“ChatGPT自己写出好的Prompt的“脚本在这里
写个好的Prompt太费力了
自动扮演角色+交互式的Prompt
案例实际演示
总结写个好的Prompt太费力了 在网上,你可能会看到很多人告诉你如何写Prompt,需要遵循各种规则,扮演不同的角色,任务明确、要求详细,还需要不断迭代优化。写一个出色的Prompt需要投入大量的时间和精力。甚至有一些公开的Prompt的开源库总结如何角色扮演。…