添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Hello Unregistered. Please be aware that the forums are transitioning to Ubuntu Discourse. The provisional date for forum support to go live on Ubuntu Discourse is December 12th 2024. Thereafter, this site will become read only on 9th January 2025. For more details please see this post . Any changes to these dates will be publicised on this notice and on the Future of the Forum Cafe thread where any questions about the transition may be asked.
luis@l-System-luisj:~$ sudo apt-get install mysql-server
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:
mysql-server-8.0 : Depends: mysql-server-core-8.0 (= 8.0.28-0ubuntu4) but 8.0.32-0ubuntu0.22.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.
luis@l-System-luisj:~$
Can some one help to fix this problem
Thank you
Code:
sudo apt-get --fix-broken
If it reports back that the broken dependencies have been fixed, try installing mysql-server again.
If you already have a version of mysql-server on this machine, you might try removing it first before installing
Code:
sudo apt remove mysql-server
sudo apt install mysql-server
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Tried your suggestion but there is something wrong
luis@l-System-luisj:~$ sudo apt-get --fix-broken
[sudo] password for luis:
E: Command line option --fix-broken is not understood in combination with the other options
luis@l-System-luisj:~$

" Concurrent coexistence of Windows, Linux and UNIX... " || Ubuntu user # 33563, Linux user # 533637
Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags
There still some problems
luis@l-System-luisj:~$ sudo apt install --fix-broken
[sudo] password for luis:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
luis@l-System-luisj:~$ sudo apt remove mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'mysql-server' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
luis@l-System-luisj:~$ sudo apt install mysql-server
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:
mysql-server-8.0 : Depends: mysql-server-core-8.0 (= 8.0.28-0ubuntu4) but 8.0.32-0ubuntu0.22.04.2 is to be installed
Recommends: libhtml-template-perl but it is not going to be installed
Recommends: mecab-ipadic-utf8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
luis@l-System-luisj:~$
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Version table: 8.0.32-0ubuntu0.22.04.2 500 500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages 8.0.32-0buntu0.22.04.1 500 500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages 8.0.28-0ubuntu4 500 500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages
The install candidate is 8.0.32-0ubuntu4, but somehow his was trying to install 8.0.28-0ubuntu4?
Code:
sudo apt install mysqlserver=8.0.32-0ubuntu0.22.04.2
This is what I get in a dry run:
Code:
mafoelffen@Mikes-B460M:~$ sudo apt-get install --dry-run mysql-server=8.0.32-0ubuntu0.22.04.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libevent-pthreads-2.1-7 libfcgi-bin
  libfcgi-perl libfcgi0ldbl libhtml-template-perl libmecab2 libprotobuf-lite23
  mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0
  mysql-client-core-8.0 mysql-common mysql-server-8.0 mysql-server-core-8.0
Suggested packages:
  libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libevent-pthreads-2.1-7 libfcgi-bin
  libfcgi-perl libfcgi0ldbl libhtml-template-perl libmecab2 libprotobuf-lite23
  mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0
  mysql-client-core-8.0 mysql-common mysql-server mysql-server-8.0
  mysql-server-core-8.0
0 upgraded, 18 newly installed, 0 to remove and 58 not upgraded.
Inst mysql-common (5.8+1.0.8 Ubuntu:22.04/jammy [all])
Inst mysql-client-core-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Inst mysql-client-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Inst libevent-pthreads-2.1-7 (2.1.12-stable-1build3 Ubuntu:22.04/jammy [amd64])
Inst libmecab2 (0.996-14build9 Ubuntu:22.04/jammy [amd64])
Inst libprotobuf-lite23 (3.12.4-1ubuntu7 Ubuntu:22.04/jammy [amd64])
Inst mysql-server-core-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Conf mysql-common (5.8+1.0.8 Ubuntu:22.04/jammy [all])
Inst mysql-server-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Inst libcgi-pm-perl (4.54-1 Ubuntu:22.04/jammy [all])
Inst libfcgi0ldbl (2.4.2-2build2 Ubuntu:22.04/jammy [amd64])
Inst libfcgi-perl (0.82+ds-1build1 Ubuntu:22.04/jammy [amd64])
Inst libcgi-fast-perl (1:2.15-1 Ubuntu:22.04/jammy [all])
Inst libfcgi-bin (2.4.2-2build2 Ubuntu:22.04/jammy [amd64])
Inst libhtml-template-perl (2.97-1.1 Ubuntu:22.04/jammy [all])
Inst mecab-utils (0.996-14build9 Ubuntu:22.04/jammy [amd64])
Inst mecab-ipadic (2.7.0-20070801+main-3 Ubuntu:22.04/jammy [all])
Inst mecab-ipadic-utf8 (2.7.0-20070801+main-3 Ubuntu:22.04/jammy [all])
Inst mysql-server (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [all])
Conf mysql-client-core-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Conf mysql-client-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Conf libevent-pthreads-2.1-7 (2.1.12-stable-1build3 Ubuntu:22.04/jammy [amd64])
Conf libmecab2 (0.996-14build9 Ubuntu:22.04/jammy [amd64])
Conf libprotobuf-lite23 (3.12.4-1ubuntu7 Ubuntu:22.04/jammy [amd64])
Conf mysql-server-core-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Conf mysql-server-8.0 (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [amd64])
Conf libcgi-pm-perl (4.54-1 Ubuntu:22.04/jammy [all])
Conf libfcgi0ldbl (2.4.2-2build2 Ubuntu:22.04/jammy [amd64])
Conf libfcgi-perl (0.82+ds-1build1 Ubuntu:22.04/jammy [amd64])
Conf libcgi-fast-perl (1:2.15-1 Ubuntu:22.04/jammy [all])
Conf libfcgi-bin (2.4.2-2build2 Ubuntu:22.04/jammy [amd64])
Conf libhtml-template-perl (2.97-1.1 Ubuntu:22.04/jammy [all])
Conf mecab-utils (0.996-14build9 Ubuntu:22.04/jammy [amd64])
Conf mecab-ipadic (2.7.0-20070801+main-3 Ubuntu:22.04/jammy [all])
Conf mecab-ipadic-utf8 (2.7.0-20070801+main-3 Ubuntu:22.04/jammy [all])
Conf mysql-server (8.0.32-0ubuntu0.22.04.2 Ubuntu:22.04/jammy-updates, Ubuntu:22.04/jammy-security [all])
Make sure he is updated to current before he tries that. That should work.

" Concurrent coexistence of Windows, Linux and UNIX... " || Ubuntu user # 33563, Linux user # 533637
Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags
vBulletin ©2000 - 2024, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License . For details and our forum data attribution, retention and privacy policy, see here