Значит мой dpkg
сломан, пытаюсь переустановить. Но я получаю такую ошибку,
$sudo apt-get install dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
dpkg is already the newest version (1.18.4ubuntu1.6).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
Depends: mysql-client-5.7 (>= 5.7.31-0ubuntu0.16.04.1) but it is not going to be installed
Depends: mysql-common (>= 5.6.22-1~) but it is not going to be installed
Depends: mysql-server-core-5.7 (= 5.7.31-0ubuntu0.16.04.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Итак, поскольку он предлагает сделать $sudo apt-get -f install
, когда я запускаю это, я получаю эту ошибку,
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-core-5.7
The following packages will be upgraded:
mysql-server-5.7
1 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/17.7 MB of archives.
After this operation, 108 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)
На самом деле я хочу установите сервер Mysql, но этот dpkg
неисправен. Я не смог установить никаких пакетов.
Кто-нибудь может помочь мне решить эту проблему.