LoginSignup
0
1

More than 5 years have passed since last update.

docker上のubuntu16.04で32bit版パッケージをインストール

Posted at

docker上のubuntu16.04で32bit版のパッケージをインストールしようとしたときにハマったので備忘録を残す。

ハマったこと

docker上にubuntu16.04で開発環境を作るため、32bit版のパッケージをインストールしようとしたらこうなった。

root@a9e3a8eaf47d:/# apt-get install -y mtd-utils:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mtd-utils:i386

パッケージが見つからないよ!とエラーが出る。

解決策

dpkgでマルチアーキテクチャを有効にしてやればいけた。
参考にしたサイト:https://akrabat.com/installing-32-bit-packages-on-ubuntu-14-04/

root@a9e3a8eaf47d:/# dpkg --add-architecture i386
root@a9e3a8eaf47d:/# dpkg --print-foreign-architectures
i386
root@a9e3a8eaf47d:/# apt-get update
root@a9e3a8eaf47d:/# apt-get install -y mtd-utils:i386
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1