Установите libltdl-dev: armhf в Ubuntu amd64

Я пытаюсь скомпилировать Go Script из amd64 в arm7l.

Я мог бы сделать это с помощью Gitlab CI с помощью:

dpkg --add-architecture armhf
apt update && apt-get install -y gcc-arm-linux-gnueabihf libltdl-dev:armhf
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -v -o ./release/edge_to_bc

Но когда я пробую это непосредственно с моим Ubuntu, при обновлении apt я получаю:

E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/cosmic/main/binary-armhf/Packages  404  Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/cosmic-updates/main/binary-armhf/Packages  404  Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/cosmic-backports/main/binary-armhf/Packages  404  Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/cosmic-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Я пытался следуйте этому посту : но я все еще получаю эти ошибки. Самое большее, я получаю:

sudo apt-get install -y gcc-arm-linux-gnueabihf libltdl-dev:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc-arm-linux-gnueabihf is already the newest version (4:8.3.0-1ubuntu1.2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libltdl-dev:armhf : Depends: libltdl7:armhf (= 2.4.6-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Если я удалю архитектуру armhf с помощью:

dpkg --add-architecture armhf

Я, конечно, разрешу проблему с поврежденным пакетом, но не смогу загрузить мой пакет с оружием ...

Что я могу сделать?

0
задан 17 June 2019 в 18:22

0 ответов

Другие вопросы по тегам:

Похожие вопросы: