Sudo apt-get failure -> Cross compilation failure

I am trying cross compile a sample on my host machine, But when I do sudo apt-get update, I am getting this error for some packages :
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found [IP: 141.30.62.26 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found [IP: 141.30.62.26 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages 404 Not Found [IP: 141.30.62.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.38 80]

Compilation is failing (maybe because of this )…!

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.5.0.7774
other

Host Machine Version
native Ubuntu 18.04
other

Hi @aswb ,

This is not nvidia related. Could you search the internet to see if any similar issue? “sudo dpkg --remove-architecture arm64” fix it?

What error messages did you see?

/usr/local/driveworks-2.2/lib/libdriveworks.so: error adding symbols: File in wrong format

Please follow the following page in your host system and see if “clean” cross compilation helps. Thanks.

/usr/local/driveworks-2.2/doc/nvsdk_html/dwx_samples_building_V5L.html

I’ve tried this already,
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=/path/to/driveworks/samples/cmake/Toolchain-V5L.cmake
-DVIBRANTE_PDK:STRING=/path/to/drive-t186ref-linux
/path/to/driveworks/samples/folder
$ make -j
$ make install

But when doing make -j, this error is occurring:
/usr/local/driveworks-2.2/lib/libdriveworks.so: error adding symbols: File in wrong format

Please share the exact commands you ran. You have to modify some paths according to real paths.

~$ cmake -DCMAKE_BUILD_TYPE=Release 
-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-V5L.cmake 
-DVIBRANTE_PDK:STRING=/home/aswin/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux ..

seems some typo. also, DriveWorks samples are under /usr/local/driveworks-2.2/samples.

I copied them to a separate directory

Please try with no copy as a baseline for yourself. One of your commands should like the following:

$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=$HOME/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux /usr/local/driveworks/samples/