web-dev-qa-db-ja.com

Google Roboto Fonts-競合のためインストールできません

16.04の新しい最小インストールでは、GoogleのRobotoフォントがChromeに表示されません。

フォントをインストールしようとすると、conflicts...メッセージが表示されます。修正方法はありますか?

one@laptop:~$ Sudo apt-get install fonts-roboto*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'fonts-roboto-fontface' for glob 'fonts-roboto*'
Note, selecting 'fonts-roboto-hinted' for glob 'fonts-roboto*'
Note, selecting 'fonts-roboto' for glob 'fonts-roboto*'
Note, selecting 'fonts-roboto-unhinted' for glob 'fonts-roboto*'
fonts-roboto is already the newest version (2:0~20160106-1).
fonts-roboto-hinted is already the newest version (2:0~20160106-1).
fonts-roboto-hinted set to manually installed.
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:
 fonts-roboto-hinted : Conflicts: fonts-roboto-unhinted but 2:0~20160106-1 is to be installed
 fonts-roboto-unhinted : Conflicts: fonts-roboto-hinted but 2:0~20160106-1 is to be installed
                         Conflicts: fonts-roboto-hinted:i386
E: Unable to correct problems, you have held broken packages.
one@laptop:~$ 
1
dman

これは、17.10には存在しない16.04のバグです。 バグレポート を提出して修正をアップロードしたところ、数週間かそこらで問題ないはずです。

編集:

修正済み:

https://launchpad.net/ubuntu/+source/fonts-roboto/2:0~20160106-1ubuntu0.1

4

Apt-getが私たちに伝えていることを分析しましょう:

  • fonts-robotoはすでにインストールされており、最新バージョンです。
  • fonts-roboto-hintedはすでにインストールされており、最新バージョンです。以前は別のパッケージとともに自動的にインストールされていたので、apt-getを「手動インストール」に変更しました。これは、特にインストールを要求したためです。
  • fonts-roboto-hinhintedは、fonts-roboto-hintedと競合するためインストールされませんでした
  • fonts-roboto-fontfaceがインストールされていません。選択された以外に出力にリストされていません。

私の研究で、Debianのfonts-robotoのバグレポートを見つけました(Ubuntuのディストリビューションのベース):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838199
バグレポートは、fonts-roboto-hintedとfonts-roboto-unhintedの間のパッケージの競合に関するものです。レポートでは、開発者はパッケージバージョンfonts-roboto 2:0〜20160106-2の問題を修正したと述べています。

両方のパッケージを手動でインストールすると、apt-getが競合について不満を言い、満足しないと思うため、この 'false'競合を処理する良い方法がわかりません。また、アップグレードが失敗する可能性があります。おそらく、より多くの知識を持っている人が、その状況を解決する方法について話し合うことができます。

あなたが実行することがあります:

Sudo apt-get install fonts-roboto-fontface

私はそれがインストールされたとは思わないし、競合するとも思わないからです。

3
Paul Tanzini

他の回答が役に立たない場合は、手動でインストールして動作することが保証されている方法を以下に示します。

  1. here からroboto-master.Zipをダウンロードします。
  2. ファイルを抽出する
  3. 抽出されたファイル内のroboto-master/src/hintedに移動します
  4. すべてのTTFファイルを/home/$USER/.local/share/fontsにコピーします
2
marko