我无法从 Ubuntu 16.04.5 LTS 升级到 18.04.1 LTS,因为一个软件包尚未升级 ( libbluray-bdj )。当我尝试升级它时,它无法升级,因为它依赖于一个不可升级的包(libasm-java),因为它没有安装候选。当我尝试删除libbluray-bdj时,它告诉我它将删除我不想做的ubuntu-mate-desktop 。
我之所以通过终端执行升级,是因为我之前通过软件更新程序进行了部分升级(在遇到这些问题之前),并且我不想让我的系统在 16.04.5 和 18.04.1 之间处于部分升级状态。
我只想升级到 18.04.1。谢谢!
以下是我使用的命令及其输出:
lsb_release -a
Run Code Online (Sandbox Code Playgroud)
没有可用的 LSB 模块。
发行商 ID:Ubuntu
描述:Ubuntu 16.04.5 LTS
版本:16.04
代号:xenial
sudo apt update && sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)
1个包可以升级。运行“apt list --upgradable”来查看它。
apt list --upgradable -a
Run Code Online (Sandbox Code Playgroud)
libbluray-bdj/xenial,xenial 1:1.0.2-3~xenial all [可升级自:1:0.9.2-2]
N:有 1 个附加版本。请使用“-a”开关查看
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)
0 已升级,0 已新安装,0 已删除,0 未升级。
sudo apt-get upgrade -y
Run Code Online (Sandbox Code Playgroud)
以下软件包已被保留:
libbluray-bdj
0 个已升级,0 个新安装,0 个要删除,1 个未升级。
sudo do-release-upgrade
Run Code Online (Sandbox Code Playgroud)
请在升级之前安装适用于您的版本的所有可用更新。
sudo …Run Code Online (Sandbox Code Playgroud) 在安装软件包方面我是一个初学者。我知道基本apt命令。这是我的问题:
我有一个需要venv正确运行的应用程序。我找不到可安装的软件包venv,但我确实找到了pyvenv. 所以我执行了这个:
$ sudo apt install python3-venv
Run Code Online (Sandbox Code Playgroud)
现在我有了该文件/usr/bin/pyvenv,但它是一个无处可去的软链接:
$ ll /usr/bin/pyvenv
lrwxrwxrwx 1 root root 10 Mar 13 2020 /usr/bin/pyvenv -> pyvenv-3.8
Run Code Online (Sandbox Code Playgroud)
which pyvenv-3.8不产生输出。如果我找到该文件,pyvenv-3.8我会看到以下内容:
/usr/share/bash-completion/completions/pyvenv-3.8
Run Code Online (Sandbox Code Playgroud)
但这只是指向pyvenv. 那么应该pyvenv指向哪里呢?
当我尝试 make 时,apt upgrade它返回 4 个未完全安装的软件包:
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up grub-pc (2.04-1ubuntu26.8) ...
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess …Run Code Online (Sandbox Code Playgroud) 我使用的是 Pop OS,它与 Ubuntu 非常接近。几天前,我尝试按照System 76 网站上的说明运行以下命令,将我的工作站从 Pop OS 20.04 更新到 2010
\nsudo apt update\nsudo apt full-upgrade\nRun Code Online (Sandbox Code Playgroud)\n然后转到操作系统升级,下载 20.10,然后重新启动。该版本自 20.04 以来没有变化。我很忙,所以我暂时搁置了它。
\n我尝试通过 Pop Shop 更新我的软件并收到此错误:
\nThe following packages have unmet dependencies:\n locales: Depends: libc-bin (> 2.32)\nRun Code Online (Sandbox Code Playgroud)\n重新运行时我遇到了类似的错误full-upgrade,这也提示我运行sudo apt --fix-broken install,这给了我另一个错误:
dpkg: error processing package libc6:amd64 (--configure):\n package libc6:amd64 cannot be configured because libc6:i386 is not ready (current status \'half-installed\')\nErrors were encountered while processing:\n libc6:amd64\nE: Sub-process /usr/bin/dpkg returned an …Run Code Online (Sandbox Code Playgroud) 我刚刚在双启动上安装了 Ubuntu 21.04,但是当我尝试使用时,sudo apt update我收到以下错误:
Ign:1 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu hirsute
InRelease
Ign:2 http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04
InRelease
Hit:3 http://archive.ubuntu.com/ubuntu hirsute InRelease
Hit:4 http://deb.playonlinux.com trusty InRelease
Err:5 http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 Release 404 Not Found [IP: 195.135.221.134 80]
Err:6 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu hirsute Release 404 Not Found [IP: 91.189.95.85 80] Reading package lists... Done
E: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by
default.
N: See apt-secure(8) manpage for repository creation and …Run Code Online (Sandbox Code Playgroud) 我最近使用 更新了我的 python 版本从 3.8 到 3.10,
sudo update-alternatives --config python3但这似乎在某处导致了 apt 的问题。每当我尝试运行时,sudo apt-get update它都会按预期工作。当我尝试运行时sudo apt-get upgrade,我遇到了以下问题。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python-apt (2.0.0ubuntu0.20.04.6) ...
/var/lib/dpkg/info/python-apt.postinst: 6: …Run Code Online (Sandbox Code Playgroud) 关于目录apt中/var/log/apt主要出现history.log和term.log文件及其“变体”(旧版本),例如:
history.log.1.gz...history.log.11.gzterm.log.1.gz...term.log.11.gz问题
/var/log/apt/history.log和之间有什么区别/关系/var/log/apt/term.log?我看了每一篇的内容,都差不多。
我使用的是 Ubuntu 5.15.0-1011-aws。当我在 Ubuntu 中运行以下命令时
$fdformat --version
Run Code Online (Sandbox Code Playgroud)
它输出以下内容:
Command 'fdformat' not found, .....
Run Code Online (Sandbox Code Playgroud)
由于 fdformat 在 util-linux 中,正如我在 Linux 手册页上搜索的那样,我运行以下命令:
$apt info util-linux
Run Code Online (Sandbox Code Playgroud)
它返回:
...
Package: util-linux
Version: 2.37.2-4ubuntu3
.....
Run Code Online (Sandbox Code Playgroud)
然后我检查我机器上的 util-linux 软件包的信息,
$ sudo apt upgrade util-linux
Run Code Online (Sandbox Code Playgroud)
它显示以下内容:
...
util-linux is already the newest version (2.37.2-4ubuntu3).
...
Run Code Online (Sandbox Code Playgroud)
我的问题是 fdformat 是否已从最新的 util-linux 软件包中排除?
我理解哲学上的差异,以及发布周期、稳定性等问题。但在更技术的层面上,操作系统本身有什么不同?例如,我知道他们使用不同的软件包存储库,以及 /etc/os-release 等小东西。还有别的事吗?
重新表述一下我的问题,为了将 Debian 系统变成 Ubuntu 系统,需要进行哪些更改?
更广泛的背景是,我正在使用嵌入式系统,Ubuntu 对我需要使用的软件包之一有更好的支持。使用 multistrap 生成 Debian rootfs 不会让我使用它,但如果我将存储库切换为 Ubuntu 存储库,并从 Ubuntu 存储库获取我需要的所有软件包,则一切正常。我试图弄清楚我是否生成了 Ubuntu 根文件系统,或者只是带有 Ubuntu 存储库和软件包的 Debian rootfs。
我见过树桩用户(包括我自己),Apt 不允许同时安装 MySQL 和 MariaDB。例如,这是一个关于该主题的近 3 年前的AskUbuntu 问题,但仍未得到解答。
作为问题的具体描述,请考虑 Ubuntu 22.04。如果我使用 Apt 安装了 MySQL,然后尝试安装 MariaDB 软件包,Apt 将要求删除 MySQL:
# MySQL 8.0 is installed:
$ apt-cache policy mysql-server-8.0
mysql-server-8.0:
Installed: 8.0.30-0ubuntu0.22.04.1
Candidate: 8.0.30-0ubuntu0.22.04.1
...
# MariaDB 10.6 is not installed:
$ apt-cache policy mariadb-server-10.6
mariadb-server-10.6:
Installed: (none)
Candidate: 1:10.6.7-2ubuntu1.1
...
# Attempt to install MariaDB 10.6:
$ sudo apt install mariadb-server-10.6
...
The following additional packages will be installed:
galera-4 gawk libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl
libsigsegv2 libterm-readkey-perl mariadb-client-10.6
mariadb-client-core-10.6 mariadb-server-core-10.6
... …Run Code Online (Sandbox Code Playgroud)