Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] make is not installed and can't(?) be installed #2038

Open
petusky opened this issue Jan 29, 2025 · 5 comments
Open

[Bug] make is not installed and can't(?) be installed #2038

petusky opened this issue Jan 29, 2025 · 5 comments
Labels
software: ev3dev support Request for technical support for a problem that is not a bug or feature request

Comments

@petusky
Copy link

petusky commented Jan 29, 2025

Describe the bug
I am unable to install a driver for a USB wifi adapter because make is not installed. (Note that I am connected to WIFI via USB to my computer.).

@volansky describes the need to install make in this post from 2016: ev3dev/ev3dev#703

However, I'm unable to install make (using a command like sudo apt-get update). I get the following:

The repository 'http://security.debian.org stretch/updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://httpredir.debian.org/debian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Is there a workaround for this security issue? Or another way to install make on the EV3?

(Mine is running GNU bash, version 4.4.12(1)-release (arm-unknown-linux-gnueabi) )

To reproduce
Steps to reproduce the behavior:
Connect to the EV3 using SSH. Issue "sudo apt-get update".

Expected behavior
I thought that would install make for me.

Screenshots
Other efforts to install make fail:

Image

Here's the screen shot of the warning:

Image

@petusky petusky added the triage Issues that have not been triaged yet label Jan 29, 2025
@dlech
Copy link
Member

dlech commented Jan 30, 2025

Known issue. Please see step 6.1 in the getting started guide on how to fix this.

https://www.ev3dev.org/docs/getting-started/

@petusky
Copy link
Author

petusky commented Jan 30, 2025

Thank you. That feedback was both timely and helpful and helped move me along. However, I'm still not all the way there. The bottom line is that I'm missing a build directory needed for make. I've tried updating Linux headers but that didn't fix the problem.

Here's what I've done:

  1. Updated /etc/apt/sources.list, per the instructions in Step 6.1 referenced by @dlech.

  2. Update the kernel:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade

  3. Installed build-essentials to install make:
    sudo apt-get install build-essential

  4. Downloaded the WIFI adapter driver and copied to EV3 using scp. From terminal on the mac (not the SSH session):
    scp ./EW-7811Un_V2_Linux_Driver_1.0.1.3.zip [email protected]:/home/robot

  5. Unzipped on SSH:
    unzip EW-7811Un_V2_Linux_Driver_1.0.1.3

  6. Per instructions for the Edimax wifi adapter instructions on the amazon page, I updated headers:
    sudo apt install linux-headers-$(uname -r)

  7. I installed bc, after make warned me that it was not found:
    sudo apt install bc

  8. I navigated to the folder with the driver (/home/robot/EW-7811Un_V2_Linux_Driver_1.0.1.3) and invoke make:
    make

But I get an error that the build directory is missing (/lib/modules/4.14.117-ev3dev-2.3.5-ev3/build). I've navigated there and indeed it is missing:

robot@ev3dev:~/EW-7811Un_V2_Linux_Driver_1.0.1.3$ make
make ARCH=armv5tejl CROSS_COMPILE= -C /lib/modules/4.14.117-ev3dev-2.3.5-ev3/build M=/home/robot/EW-7811Un_V2_Linux_Driver_1.0.1.3  modules
make[1]: *** /lib/modules/4.14.117-ev3dev-2.3.5-ev3/build: No such file or directory.  Stop.
Makefile:2461: recipe for target 'modules' failed
make: *** [modules] Error 2

I've researched this missing directory problem, but all the posted solutions I found tell me to deal with steps I've already tried above (such as updating Linux headers.). So at this point I'm stuck. Help, please!

@dlech
Copy link
Member

dlech commented Jan 31, 2025

-C /lib/modules/4.14.117-ev3dev-2.3.5-ev3/build

Hmm... I don't think the files from that directory ever got packaged with the ev3dev kernel. So you would probably have to build your own kernel first to get that directory.

@Sirus-7
Copy link

Sirus-7 commented Jan 31, 2025

Because debian stretch is no longer in the current repository change in /etc/apt/sources.list

deb-src http://security.debian.org/ stretch/updates main contrib non-free
change to
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free

https://unix.stackexchange.com/questions/744401/security-repo-for-debian-stretch-not-working-anymore

@petusky
Copy link
Author

petusky commented Jan 31, 2025

Thanks @Sirus-7. However, I checked off that box earlier, per the instructions by @dlech, which instructed me to update /etc/apt/sources.list to :

deb http://archive.debian.org/debian stretch main contrib non-free
#deb-src http://archive.debian.org/debian stretch main contrib non-free

deb http://archive.ev3dev.org/debian stretch main
#deb-src http://archive.ev3dev.org/debian stretch main

@dlech dlech added support Request for technical support for a problem that is not a bug or feature request software: ev3dev and removed triage Issues that have not been triaged yet labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
software: ev3dev support Request for technical support for a problem that is not a bug or feature request
Projects
None yet
Development

No branches or pull requests

3 participants