LoginSignup
0

More than 5 years have passed since last update.

You may want to run apt-get update to correct these problemsとなるとき

Posted at

我流解消方法

Unknown Multi-Arch type 'no' for package ほげほげなどと出てしまい、Warningが出てしまうときの対処。

sources.list

root@ubuntu:/etc/apt# cat sources.list
deb http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial main restricted
deb-src http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial main restricted
deb http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-updates main restricted
deb-src http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-updates main restricted
deb http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial universe
deb-src http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial universe
deb http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-updates universe
deb-src http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-updates universe
deb http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-security main restricted
deb-src http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-security main restricted
deb http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-security universe
deb-src http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/ xenial-security universe

apt updateしたときのログ

root@ubuntu:/etc/apt# apt update
Hit http://ftp.iij.ad.jp xenial InRelease
Hit http://ftp.iij.ad.jp xenial-updates InRelease
Hit http://ftp.iij.ad.jp xenial-security InRelease
Hit http://ftp.iij.ad.jp xenial/main Sources
Hit http://ftp.iij.ad.jp xenial/restricted Sources
Hit http://ftp.iij.ad.jp xenial/universe Sources
Hit http://ftp.iij.ad.jp xenial/main amd64 Packages
Hit http://archive.ubuntu.com xenial InRelease
Hit http://ftp.iij.ad.jp xenial/restricted amd64 Packages
Hit http://ftp.iij.ad.jp xenial/main i386 Packages
Hit http://archive.ubuntu.com xenial-updates InRelease
Hit http://ftp.iij.ad.jp xenial/restricted i386 Packages
Hit http://ftp.iij.ad.jp xenial/main Translation-en
Hit http://ftp.iij.ad.jp xenial/restricted Translation-en
Hit http://ftp.iij.ad.jp xenial-updates/main Sources
Hit http://archive.ubuntu.com xenial-security InRelease
Hit http://ftp.iij.ad.jp xenial-updates/restricted Sources
Hit http://ftp.iij.ad.jp xenial-updates/universe Sources
Hit http://ftp.iij.ad.jp xenial-updates/main amd64 Packages
Hit http://ftp.iij.ad.jp xenial-updates/restricted amd64 Packages
Hit http://ftp.iij.ad.jp xenial-updates/main i386 Packages
Hit http://ftp.iij.ad.jp xenial-updates/restricted i386 Packages
Hit http://ftp.iij.ad.jp xenial-updates/main Translation-en
Hit http://ftp.iij.ad.jp xenial-updates/restricted Translation-en
Hit http://archive.ubuntu.com xenial/main amd64 Packages
Hit http://ftp.iij.ad.jp xenial-security/main Sources
Hit http://ftp.iij.ad.jp xenial-security/restricted Sources
Hit http://ftp.iij.ad.jp xenial-security/universe Sources
Hit http://archive.ubuntu.com xenial/universe amd64 Packages
Hit http://ftp.iij.ad.jp xenial-security/universe amd64 Packages
Hit http://ftp.iij.ad.jp xenial-security/universe i386 Packages
Hit http://ftp.iij.ad.jp xenial-security/universe Translation-en
Hit http://archive.ubuntu.com xenial/main i386 Packages
Hit http://archive.ubuntu.com xenial/universe i386 Packages
Hit http://archive.ubuntu.com xenial/main Translation-en
Hit http://archive.ubuntu.com xenial/universe Translation-en
Hit http://archive.ubuntu.com xenial-updates/main amd64 Packages
Hit http://archive.ubuntu.com xenial-updates/universe amd64 Packages
Hit http://archive.ubuntu.com xenial-updates/main i386 Packages
Hit http://archive.ubuntu.com xenial-updates/universe i386 Packages
Hit http://archive.ubuntu.com xenial-updates/main Translation-en
Hit http://archive.ubuntu.com xenial-updates/universe Translation-en
Hit http://archive.ubuntu.com xenial-security/main amd64 Packages
Hit http://archive.ubuntu.com xenial-security/universe amd64 Packages
Hit http://archive.ubuntu.com xenial-security/main i386 Packages
Hit http://archive.ubuntu.com xenial-security/universe i386 Packages
Hit http://archive.ubuntu.com xenial-security/main Translation-en
Hit http://archive.ubuntu.com xenial-security/universe Translation-en
Reading package lists... Done
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Unknown Multi-Arch type 'no' for package 'libxapian-dev'
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Unknown Multi-Arch type 'no' for package 'libxapian-dev'
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Ignoring Provides line with DepCompareOp for package xserver-xorg
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Ignoring Provides line with DepCompareOp for package xserver-xorg
W: Unknown Multi-Arch type 'no' for package 'kwin'
W: Unknown Multi-Arch type 'no' for package 'kwin-dev'
W: Unknown Multi-Arch type 'no' for package 'kwin-wayland'
W: Unknown Multi-Arch type 'no' for package 'kwin-x11'
W: Unknown Multi-Arch type 'no' for package 'libkf5sysguard-dev'
W: Ignoring Provides line with DepCompareOp for package php-psr-http-message-implementation
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-seclib
W: Ignoring Provides line with DepCompareOp for package php-sabre-http
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'kwin-dev'
W: Unknown Multi-Arch type 'no' for package 'kwin-wayland'
W: Unknown Multi-Arch type 'no' for package 'kwin-x11'

▽
W: Unknown Multi-Arch type 'no' for package 'libkf5sysguard-dev'
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: You may want to run apt-get update to correct these problems

よくある対処法
・参照先のリポジトリを変える。
・Aptのキャッシュをクリアする。
どっちをやってもだめでした。

色々ぐぐったらaptにもバグはあるらしい。
「アップグレードしてみ」って書いてあったのでダメ元で下記コマンドを実行。

apt upgrade apt
実行前 apt 1.0.1ubuntu2 for amd64 compiled on Dec 8 2016 16:23:37

実行後 apt 1.2.24 (amd64)

root@ubuntu:/etc/apt# apt update
Hit:1 http://ftp.iij.ad.jp/pub/linux/ubuntu/archive xenial InRelease
Hit:2 http://ftp.iij.ad.jp/pub/linux/ubuntu/archive xenial-updates InRelease
Hit:3 http://ftp.iij.ad.jp/pub/linux/ubuntu/archive xenial-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
61 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ubuntu:/etc/apt#

無事解決された様子です。

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