Results 1 to 2 of 2

Thread: Ubuntu Jammy (in WSL): adding armhf arch, can't find packages

  1. #1
    Join Date
    Apr 2024
    Beans
    2

    Question Ubuntu Jammy (in WSL): adding armhf arch, can't find packages

    I'm trying to use WSL to cross-compile a c++ program for armhf on a Windows PC.
    I've was able to do it on a Debian image some years ago, and now i need to do it again on a new PC. Since the powershell command wsl.exe --install automagically installed Ubuntu Jammy, i'm fine at keeping it.


    I've learned that armhf binaries are on the "ports" repository, so i added these lines to a /etc/apt/sources.list.d/armrep.list file:


    Code:
    deb [ arch=armhf ] http://ports.ubuntu.com/ jammy main restricted universe multiverse
    deb [ arch=armhf ] http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse
    deb [ arch=armhf ] http://ports.ubuntu.com/ jammy-security main restricted universe multiverse
    deb [ arch=armhf ] http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse
    Then I add the armhf architecture (sudo dpkg --add-architecture armhf) but i get a many errors like these ones:
    Code:
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.83 80]
    E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.82 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.83 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.83 80]
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    Then, when i try to install the gtk3 libraries (sudo apt install libgtk-3-dev:armhf) i get a whole lot of unmet dependencies errors.

    Could someone tell me what should i do to build for armhf using the Ubuntu Jammy image available from the Windows Store for WSL?

  2. #2
    Join Date
    Jun 2014
    Beans
    7,412

    Re: Ubuntu Jammy (in WSL): adding armhf arch, can't find packages

    The 404 error reported means it cannot find the IP address which generally means the server is down or your internet connection is. Have you checked that? Just ping the IP you have and see if it is successful to eliminate that as a possible problem. The WSL was a non-gui program but should have a gui with windows 11 although I don't know that is the default. The gtk toolkit is used for graphical user interfaces.


    You are not using a standard Ubuntu but rather a version modified by microsoft so you may be better off at a windows forum.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •