dpkg/apt-getが別のパッケージをインストールして上書きしようとします。

dpkg/apt-getが別のパッケージをインストールして上書きしようとします。

LBをインストールしたいです。この方法:

apt-get install pound

次を生成します。

root@myhost:~# apt-get install pound
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-23-generic linux-headers-3.2.0-23
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  pound
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 98.3 kB of archives.
After this operation, 226 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe pound amd64 2.5-1.1 [98.3 kB]
Fetched 98.3 kB in 0s (418 kB/s)
Selecting previously unselected package pound.
(Reading database ... 102644 files and directories currently installed.)
Unpacking pound (from .../pound_2.5-1.1_amd64.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up mysql-server-5.5 (5.5.32-0ubuntu0.12.04.1) ...

Configuration file `/etc/apparmor.d/usr.sbin.mysqld'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.

mysql-serverがインストールされ、実行中です。私はこれを再インストールしたくありません。

Pound パッケージには依存関係として mysql-server は必要ありません。

どうすれば解決できますか?

本番システムがクラッシュする可能性があるため、アップグレードしたくありません。何か問題があるようですdpkg。パッケージを強制的にインストールすると、mysqlサーバーが再インストールまたはアップグレードされます。

ベストアンサー1

mysql-server-5.5パッケージをアップグレードするようです。このバージョンは、次に提供されるバージョンと一致します。USN-1909-1、セキュリティ更新プログラムをインストールしていないようです。

さまざまな構成ファイルのバージョンの違いを確認する必要があります(D例:プロンプトを押す)。その後、プロンプトが示すように、現在のバージョン(ファイル)を保持したり、NUbuntuを許可するバージョンを使用しYたり、起動シェルを使用して直接処理(たとえば、変更をマージ)したりできますZ

アップデートに応答:

過去のある時点で、誰か(あなたまたはこのシステムの他の管理者)が気づかずにMySQLのアップグレードを開始した可能性があります。または、セキュリティ更新プログラムを自動的に適用するようにシステムを設定しましたが、何らかの理由でMySQLが失敗する可能性があります。apt-get出力には次のものがあります。

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.

間違いなくを選択した場合、ステータス行でdpkg -s mysql-server-5.5はありませんinstall ok installed

とにかく、最初に起こったことは、dpkgが実際に新しいパッケージからファイルを解凍したことです(おそらくMySQLも停止したため、中断された可能性があります)。 MySQLを「設定」しようとしますが、この間にエラーが発生または中断されます。

aptパッケージを構成してこの問題を解決しようとしています。dpkg -i自分でそれをバイパスすることができます(dpkg設定を試してみることもできますが、わかりません)。

実際の解決策は、ダウンタイムをスケジュールし、MySQLのアップグレードを完了する必要があることです(設定エラーがある可能性があることに注意してください)。特に現在実行中のバージョンでは(Oracleによると)機密性と完全性を損なう可能性があるリモート脆弱性。

おすすめ記事