amd64のOSなのにapt-getで「Unable to find expected entry ‘contrib/binary-i386/Packages’ in Release file」と言われる場合の対処

apt-get updateで以下のメッセージが出てしまう場合の対処。

たとえばこう。

W: Failed to fetch http://packages.treasuredata.com/2/debian/wheezy/dists/wheezy/Release Unable to find expected entry ‘contrib/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file)

対象のsource-listに[arch=amd64]を書く。

例えばこんな感じ。

deb [arch=amd64] http://packages.treasuredata.com/2/debian/wheezy/ wheezy contrib