Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3745

Troubleshooting • Getting Kernel headers using rpi-source

$
0
0
Since I cannot use "apt-get install linux-headers-$(uname -r)"

Code:

Reading package lists... DoneBuilding dependency treeReading state information... DoneE: Unable to locate package linux-headers-4.1.7-v7E: Couldn't find any package by regex 'linux-headers-4.1.7-v7'
I am trying to use rpi-source. but that gives me:

Code:

rpi-source -v *** SoC: BCM2836Check for update to rpi-sourcedownload: https://api.github.com/repos/notro/rpi-source/git/refs/heads/mastergcc version check: mismatch between installed gcc (4) and /proc/version (4.8.3) *** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz *** Latest firmware revision: 960832a6c2590635216c296b6ee0bebf67b21d50download: https://raw.githubusercontent.com/raspberrypi/firmware/960832a6c2590635216c296b6ee0bebf67b21d50/extra/git_hash *** Linux source commit: 59e76bb7e2936acd74938bb385f0884e34b91d72 *** Download kernel sourcewget --no-check-certificate  -O /root/linux-59e76bb7e2936acd74938bb385f0884e34b91d72.tar.gz https://github.com/raspberrypi/linux/archive/59e76bb7e2936acd74938bb385f0884e34b91d72.tar.gz--2024-12-09 16:11:37--  https://github.com/raspberrypi/linux/archive/59e76bb7e2936acd74938bb385f0884e34b91d72.tar.gzp11-kit: couldn't load module: /usr/lib/arm-linux-gnueabihf/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/arm-linux-gnueabihf/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directoryResolving github.com (github.com)... 4.225.11.194Connecting to github.com (github.com)|4.225.11.194|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: https://codeload.github.com/raspberrypi/linux/tar.gz/59e76bb7e2936acd74938bb385f0884e34b91d72 [following]--2024-12-09 16:13:27--  https://codeload.github.com/raspberrypi/linux/tar.gz/59e76bb7e2936acd74938bb385f0884e34b91d72Resolving codeload.github.com (codeload.github.com)... 4.225.11.198Connecting to codeload.github.com (codeload.github.com)|4.225.11.198|:443... connected.WARNING: The certificate of `codeload.github.com' is not trusted.WARNING: The certificate of `codeload.github.com' hasn't got a known issuer.HTTP request sent, awaiting response... No data received.Retrying.--2024-12-09 16:16:41--  (try: 2)  https://codeload.github.com/raspberrypi/linux/tar.gz/59e76bb7e2936acd74938bb385f0884e34b91d72Traceback (most recent call last):  File "/usr/bin/rpi-source", line 366, in <module>    sh("wget --no-check-certificate %s -O %s https://github.com/raspberrypi/linux/archive/%s.tar.gz" % (("-q" if args.quiet else ""), linux_tar, kernel.git_hash))  File "/usr/bin/rpi-source", line 91, in sh    subprocess.check_call(cmd, shell=True)  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call    raise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command 'wget --no-check-certificate  -O /root/linux-59e76bb7e2936acd74938bb385f0884e34b91d72.tar.gz https://github.com/raspberrypi/linux/archive/59e76bb7e2936acd74938bb385f0884e34b91d72.tar.gz' returned non-zero exit status -9
Anyone got suggestions? I NEED to stay in this version so I cannot upgrade.

Statistics: Posted by Cryonic — Mon Dec 09, 2024 3:56 pm



Viewing all articles
Browse latest Browse all 3745

Trending Articles