Did anyone else have issue with apt-get update failing after installing Jetpack 2.2 ?

I installed Nvidia Jetpack 2.2 on my laptop (host) in order to install various Nvidia SDKs (CUDA, opencv4tegra, etc) on the Jetson TX-1 (the target).

I was trying to install a deb package on my laptop today. So I did

sudo apt-get update

And got this

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease Unable to find expected entry ‘main/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease Unable to find expected entry ‘universe/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/trusty/InRelease Unable to find expected entry ‘main/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry ‘main/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry ‘universe/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)

It seems that apt-get was looking for aarch64 (which is 64 bit ARM architecture) when getting packages … I am guessing.

dpkg --print-foreign-architectures
i386
aarch64

dpkg --print-architecture
amd64

Those two commands show that I have two foreign architectures, 32 bit x86 and 64 bit ARM… but my “main” architecture is 64bit x86 (amd64).

So, it seems that Nvidia Jetpack installed these aarch64 packages… probably for cross compiling for the 64bit ARM TX1 target.

dpkg --get-selections | grep aarch64
binutils-aarch64-linux-gnu install
cpp-4.8-aarch64-linux-gnu install
cpp-aarch64-linux-gnu install
cuda-cross-aarch64-7-0 install
cuda-cublas-cross-aarch64-7-0 install
cuda-cudart-cross-aarch64-7-0 install
cuda-cufft-cross-aarch64-7-0 install
cuda-curand-cross-aarch64-7-0 install
cuda-cusolver-cross-aarch64-7-0 install
cuda-cusparse-cross-aarch64-7-0 install
cuda-driver-cross-aarch64-7-0 install
cuda-misc-headers-cross-aarch64-7-0 install
cuda-npp-cross-aarch64-7-0 install
cuda-nvrtc-cross-aarch64-7-0 install
g+±4.8-aarch64-linux-gnu install
g+±aarch64-linux-gnu install
gcc-4.8-aarch64-linux-gnu install
gcc-4.8-aarch64-linux-gnu-base install

But I don’t understand why my laptop’s package manager looks for 64bit ARM architecture when getting other packages now? It seems to be looking for 64bit ARM binaries for the MongoDB debs, for example. This is very bad!

Anyways, I have a temporary fix by doing this on my sources.list(s).

deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse,
instead of deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse

Which I think forces it to look for amd64 (x86_64) instead.

But I am curious if this is a Jetpack issue/bug.

Someone else seem to have this issue as well.

http://askubuntu.com/questions/797659/apt-get-update-failing

Their comment: “using dpkg --get-selections | grep aarch64 | awk ‘{print $1}’ showed me why I have them all installed. I installed jetpack from nvidia to install a board called Nvidia jetson tx1. I am investigating some stuff :)”

What’s a good solution to this problem?

Hi TX
As you say the aarch64 will show in the “dpkg --print-foreign-architectures” after you install Jetpack 64-bit development kit to your host. However the noisy message are show some source list are not support the aarch64, and there is no way to know the list on every host to avoid. I suppose this noisy message is harmless, you can avoid it to assign the specific version like you do.

Hi,

Same thing happens to me. I have bypassed it by doing what you have done. I’ve tried removing the aarch64 architecture (since I don’t really need it after having Jetpack installed on my TX1) by executing:

sudo dpkg --remove-architecture aarch64

and I get:

dpkg: error: cannot remove architecture 'aarch64' currently in use by the database

I could try using:

sudo dpkg --force-all --remove-architecture aarch64

But I’m afraid to break something.

You may need use the synaptic to search the aarch64 to check all of the aarch64 installed package and un-install all of them. And if you know you don’t need install the tools on your host you can un-check them before install the JetPack.

My same problem:

W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease Unable to find expected entry ‘main/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease Unable to find expected entry ‘main/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)
, W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry ‘main/binary-aarch64/Packages’ in Release file (Wrong sources.list entry or malformed file)
, E:Some index files failed to download. They have been ignored, or old ones used instead.

as i Jetpack 2.2 to TX1,its coming。
But i slove it:

sudo gedit /etc/apt/sources.list
deb [arch=amd64] http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse
sudo apt-get update
忽略 file:  InRelease
忽略 file:  InRelease
获取:1 file:  Release.gpg [181 B]   
获取:2 file:  Release.gpg [181 B]                                             
获取:3 file:  Release [196 B]                                                 
获取:4 file:  Release [152 B]                                                
忽略 file:  Translation-zh_CN                                                 
忽略 file:  Translation-zh                                               
忽略 file:  Translation-en                                               
忽略 file:  Translation-zh_CN                                            
忽略 file:  Translation-zh                                               
忽略 file:  Translation-en                                               
忽略 http://archive.ubuntu.com trusty InRelease                          
命中 http://archive.ubuntu.com trusty Release.gpg
命中 http://archive.ubuntu.com trusty Release
命中 http://archive.ubuntu.com trusty/main amd64 Packages
命中 http://archive.ubuntu.com trusty/universe amd64 Packages
命中 http://archive.ubuntu.com trusty/restricted amd64 Packages
命中 http://archive.ubuntu.com trusty/multiverse amd64 Packages
命中 http://archive.ubuntu.com trusty/main Translation-zh_CN                   
获取:5 http://archive.ubuntu.com trusty/main Translation-en [762 kB]          
获取:6 http://archive.ubuntu.com trusty/multiverse Translation-zh_CN [6,366 B]
获取:7 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]    
获取:8 http://archive.ubuntu.com trusty/restricted Translation-zh_CN [2,390 B]
获取:9 http://archive.ubuntu.com trusty/restricted Translation-en [3,457 B]   
获取:10 http://archive.ubuntu.com trusty/universe Translation-zh_CN [180 kB]  
获取:11 http://archive.ubuntu.com trusty/universe Translation-en [4,089 kB]   
忽略 http://archive.ubuntu.com trusty/main Translation-zh                      
忽略 http://archive.ubuntu.com trusty/multiverse Translation-zh                
忽略 http://archive.ubuntu.com trusty/restricted Translation-zh                
忽略 http://archive.ubuntu.com trusty/universe Translation-zh                  
下载 4,449 kB,耗时 31秒 (140 kB/s)
正在读取软件包列表... 完成

thanks TX!