我制作了很多次可启动 Ubunbu 磁盘,但现在 DVD 刻录机尽管已安装,但并未出现在 Startup Disk Creator 中。我尝试弹出并让它重新安装但无济于事。有什么想法或者有更好的不同应用程序吗?我正在运行 22.10。
DonP's questions
我的笔记本电脑有 Ubuntu Studio 22.04,但它对于旧的 AMD Turion64 系统来说有点太多了,几乎无法运行,所以我试图删除所有的 Studio 组件,包括所有额外的字体,以便在普通的 vanilla Ubuntu 上试用它。
为此,我运行了这些命令,但它仍然引导至 Ubuntu Studio。实际上,它首先启动到常规的 Ubuntu 桌面,但没有图标或菜单,然后片刻之后,屏幕变黑,Ubuntu Studio 的桌面重新出现。我该如何一劳永逸地摆脱它?
sudo apt-get install ubuntu-desktop
sudo apt-get purge ubuntustudio-desktop
sudo apt-get --purge autoremove
在升级到 21.04 LTS 之前尝试更新我的系统时,MySQL 出现了无法更新或修复的错误,因此我将其清除:
sudo apt purge mysql-server-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mysql-server-8.0*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 555934 files and directories currently installed.)
Purging configuration files for mysql-server-8.0 (8.0.17-0ubuntu2) ...
Processing triggers for systemd (246.6-1ubuntu1.3) ...
但是,现在它不会重新安装。
sudo apt-get install mysql-client
Reading package lists... Done
Building dependency tree
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:
mysql-common : Conflicts: mysql-client-8.0 but 8.0.25-0ubuntu0.20.10.1 is to be installed
Conflicts: mysql-client-core-8.0 but 8.0.25-0ubuntu0.20.10.1 is to be installed
有些东西显然坏了,但不知道怎么办?
以下是基于评论的一些附加输出:
Sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu groovy-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
sudo apt clean
sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt update && sudo apt upgrade
Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu groovy-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
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.
sudo dpkg --configure -a
sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
然后尝试安装 mysql-client ,尽管没有安装它,但它在 mysql-client 上出现错误:
sudo apt install mysql-client
Reading package lists... Done
Building dependency tree
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:
mysql-common : Conflicts: mysql-client-8.0 but 8.0.25-0ubuntu0.20.10.1 is to be installed
Conflicts: mysql-client-core-8.0 but
8.0.25-0ubuntu0.20.10.1 is to be installed
E: Unable to correct problems, you have held broken packages.
其他尝试:
sudo apt install mysql-client
Reading package lists... Done
Building dependency tree
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:
mysql-common : Conflicts: mysql-client-8.0 but 8.0.25-0ubuntu0.20.10.1 is to be installed
Conflicts: mysql-client-core-8.0 but 8.0.25-0ubuntu0.20.10.1 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt purge mysql-client-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client-8.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt purge mysql-client-core-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client-core-8.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
似乎在告诉我未安装 MySQL,但它的安装存在冲突!我该如何解决这个难题?
在尝试让 ImageMagick 与 HEIC 一起工作时,我注意到虽然我安装了 Ubuntu 19.10,但 phpinfo() 显示版本 19.04。这使得很难知道要编辑哪个 php.ini,尤其是当有一个 PHP 7.2 文件夹和一个带有 phpinfo() 的 7.3 文件夹报告 php.ini 在 7.2 中时。
更令人困惑的是,在命令行运行php -v会显示预期的版本,而不是 phpinfo 中显示的早期版本。如何使所有这些同步并删除旧的未使用版本?
php -v
PHP 7.3.12-1+ubuntu19.10.1+deb.sury.org+1 (cli) (built: Nov 28 2019 07:38:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.12, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.12-1+ubuntu19.10.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
我的系统提议从 19.04 升级,所以我让它,但有很多错误。现在 MySQL 将无法运行。在终端中运行它:
然:sudo dpkg --remove --force-all mysql-community-client libmysqlclient21:amd64 mysql-common mysql-community-client-core
dpkg: mysql-community-client: dependency problems, but removing anyway as you requested:
dbconfig-mysql depends on default-mysql-client | virtual-mysql-client; however:
Package default-mysql-client is not installed.
Package virtual-mysql-client is not installed.
Package mysql-community-client which provides virtual-mysql-client is to be removed.
(Reading database ... 533508 files and directories currently installed.)
Removing mysql-community-client (8.0.18-1ubuntu19.10) ...
dpkg: libmysqlclient21:amd64: dependency problems, but removing anyway as you requested:
libvtk6.3 depends on libmysqlclient21 (>= 8.0.11); however:
Package libmysqlclient21:amd64 is to be removed.
libsnmp30:amd64 depends on libmysqlclient21 (>= 8.0.11).
libqt4-sql-mysql:amd64 depends on libmysqlclient21 (>= 8.0.11).
libgdal20 depends on libmysqlclient21 (>= 8.0.11).
Removing libmysqlclient21:amd64 (8.0.18-1ubuntu19.10) ...
Removing mysql-common (8.0.18-1ubuntu19.10) ...
Removing mysql-community-client-core (8.0.18-1ubuntu19.10) ...
Processing triggers for man-db (2.8.7-3) ...
Processing triggers for libc-bin (2.30-0ubuntu2) ...
然后运行:sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
dbconfig-mysql : Depends: default-mysql-client but it is not installed or
virtual-mysql-client
libgdal20 : Depends: libmysqlclient21 (>= 8.0.11) but it is not installed
libqt4-sql-mysql : Depends: libmysqlclient21 (>= 8.0.11) but it is not installed
libsnmp30 : Depends: libmysqlclient21 (>= 8.0.11) but it is not installed
libvtk6.3 : Depends: libmysqlclient21 (>= 8.0.11) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
然:sudo dpkg --remove --force-all dbconfig-mysql;apt-get 下载 libmysqlclient21;sudo dpkg -i libmysqlclient21 .deb; sudo apt install -f*
dpkg: dbconfig-mysql: dependency problems, but removing anyway as you requested:
phpmyadmin depends on dbconfig-mysql | dbconfig-no-thanks | dbconfig-common (<< 2.0.0); however:
Package dbconfig-mysql is to be removed.
Package dbconfig-no-thanks is not installed.
Version of dbconfig-common on system is 2.0.11ubuntu2.
(Reading database ... 533425 files and directories currently installed.)
Removing dbconfig-mysql (2.0.11ubuntu2) ...
Get:1 http://repo.mysql.com/apt/ubuntu eoan/mysql-8.0 amd64 libmysqlclient21 amd64 8.0.18-1ubuntu19.10 [1,281 kB]
Fetched 1,281 kB in 8s (152 kB/s)
Selecting previously unselected package libmysqlclient21:amd64.
(Reading database ... 533424 files and directories currently installed.)
Preparing to unpack libmysqlclient21_8.0.18-1ubuntu19.10_amd64.deb ...
Unpacking libmysqlclient21:amd64 (8.0.18-1ubuntu19.10) ...
dpkg: dependency problems prevent configuration of libmysqlclient21:amd64:
libmysqlclient21:amd64 depends on mysql-common (>= 8.0.18-1ubuntu19.10); however:
Package mysql-common is not installed.
dpkg: error processing package libmysqlclient21:amd64 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.30-0ubuntu2) ...
Errors were encountered while processing:
libmysqlclient21:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 8.0.18-1ubuntu19.10)
phpmyadmin : Depends: dbconfig-mysql but it is not installed or
dbconfig-no-thanks but it is not installed or
dbconfig-common (< 2.0.0) but 2.0.11ubuntu2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
偶尔弹出的另一个错误是:
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit -.mount is masked.