GNU/Linux >> Linux の 問題 >  >> Ubuntu

Odbcins1debian2をインストールすると、Ubuntu 20.04 Ltsへの依存関係が壊れますか?

Ubuntu 20.04にodbcinst1debian2をインストールしようとしていますが、依存関係「multiarch-support」が欠落しているようです:

$ sudo apt-get install odbcinst1debian2
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:
 odbcinst1debian2 : PreDepends: multiarch-support but it is not installable
E: Unable to correct problems, you have held broken packages.

sudo apt-get install -fを実行します その後、問題は解決しません。

$ sudo apt-get 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.

このパッケージにはマルチアーチサポートが必要なため、直接インストールしてみましたが、どちらも役に立ちませんでした。

$ sudo apt-get install multiarch-support
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package multiarch-support is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'multiarch-support' has no installation candidate

このパッケージとそれに依存するunixodbc-devはどのようにインストールする必要がありますか?

$ sudo apt-get install unixodbc-dev
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:
 unixodbc-dev : Depends: unixodbc (= 2.3.7)
                Depends: odbcinst1debian2 (= 2.3.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

助けていただければ幸いです。

apt-get updateを実行しました 、これは私が新規インストールで最初に実行するものです。

$ sudo apt-get install odbcinst1debian2 
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.
[Stuff deleted] 
The following packages have unmet dependencies: odbcinst1debian2 : PreDepends: multiarch-support but it is not installable E: Unable to correct problems, you have held broken packages. 


$ lsb_release -a 
No LSB modules are available. 
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS 
Release: 20.04 Codename: focal

$ apt-cache policy odbcinst1debian2 
odbcinst1debian2: 
Installed: (none) 
Candidate: 2.3.7 
Version table: 
  2.3.7 500 
    500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages 
  2.3.6-0.1build1 500 
    500 http://hk.archive.ubuntu.com/ubuntu focal/main amd64 Packages 

承認された回答:

この問題は、sudo apt-get updateの実行を忘れたようです。 odbcinst1debian2をインストールする前に 。 フォーカル このパッケージはmultiarch-supportに依存しません 。

ちなみにmultiarch-support 手動でインストールできます:

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1.4_amd64.deb

Ubuntu
  1. Ubuntu11.10およびUbuntu11.04にRPMパッケージをインストールします

  2. 1つはWacomがUbuntu16.04にインストールしますか?

  3. Ubuntu12.04LtsにMsOffice2013をインストールしますか?

  1. Ubuntu16.04LTSをインストールした後に行うこと

  2. Ubuntu20.04で壊れたパッケージを修正する方法

  3. Ubuntu 16.04に32ビットバージョンのSkypeをインストールしますか?

  1. Ubuntuにインストールされているパッケージを一覧表示する方法

  2. Ubuntu16へのCuda8のインストール:パッケージCudaが見つかりませんか?

  3. Lua5.2対のインストール。 Ubuntu 16.10のLua5.3?