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

can't install re4son kernel due to attempt to backup old kernel on FAT partition #13

Open
morte-rictusgrin opened this issue Sep 14, 2019 · 14 comments

Comments

@morte-rictusgrin
Copy link

morte-rictusgrin commented Sep 14, 2019

Hello, I'm trying to install sticky fingers as per https://whitedome.com.au/re4son/kali-pi/ on Pi 3B+, but fail during running install.sh:


Errors were encountered while processing:
 /usr/local/src/re4son-kernel_4.14.93-20190126/kalipi-kernel_4.14.93-20190126_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error completing: apt

The initial error is this:

Unpacking kalipi-kernel:armhf (4.14.93-20190126) over (4.19.66-20190903) ...
dpkg: error processing archive /usr/local/src/re4son-kernel_4.14.93-20190126/kalipi-kernel_4.14.93-20190126_armhf.deb (--unpack):
 unable to make backup link of './boot/overlays/audiosense-pi.dtbo' before installing new version: Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

It looks like the reason for this failure is that links are not permited on FAT partitions, which /boot surely is:


root@raspberry:/usr/local/src/re4son-kernel_4.14.93-20190126# cat /etc/fstab
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1

Here's a reference link, BTW: https://raspberrypi.stackexchange.com/a/94827

I've generally followed the manual in the link above, but stuck during installing custom kernel. Installing already prepared image od sticky fingers didn't work as well (well, I could run it and it even supported the TFT, but I couldn't make it run touch menu).

@spexx73
Copy link

spexx73 commented Oct 25, 2019

Already the same problem here. I also tried to install the Re4son-Kernel on a RasPi 3 B.
Hey morte-rictusgrin, have you already tried to install the older Kernel? I guess, I'll once give it a try. I'll try the older kernel, so the Re4son "old stable" kernel to install. If it works or not, I will report here later. Otherwise would be pretty pointless. ;-)

@spexx73
Copy link

spexx73 commented Oct 25, 2019

370/5000
Was the previous installed Kali-Image 64-bit? Then it could be because of it.

I am not a Linux professional, but I have definitely installed the 64 bit Kali image.

The following error occurred to me during the installation of the old kernel: "dpkg: warning: Package architecture (armhf) does not match the system (arm64)"

Maybe the dog is buried there?

@rafnek
Copy link

rafnek commented Dec 24, 2019

Same problem here, upgrading from 4.19.81 to 4.19.93. I "fixed" it by renaming the folder Overlays, after that the process went through as aspected and was completed successfully. Just rename or delete the folder /boot/overlays, it will be recreated after the process.

@BartStough
Copy link

Same error as spexx73, where you able to get past this?

@dtondo
Copy link

dtondo commented Apr 22, 2020

Same problem here, upgrading from 4.19.81 to 4.19.93. I "fixed" it by renaming the folder Overlays, after that the process went through as aspected and was completed successfully. Just rename or delete the folder /boot/overlays, it will be recreated after the process.

Thanks rafnek, removing overlays folder did the trick :)

@MasteR2895
Copy link

I had the same problem, but after renaming overlays it works for me but not 100% for what I needed. The installation was completed and prompt me to reboot. But it didn't install the mon0up and mon0down tools. Just these ones:

++++ Install kali-pi tools (kalipi-config, kalipi-tft-config)?
Do you know why the monitor feature isn't installed? I am using a raspbery pi 0 w with kali 2020

@iamfaith
Copy link

iamfaith commented Feb 4, 2021

same here in raspberry pi zero. Does anyone solve it?

@rafnek
Copy link

rafnek commented Feb 4, 2021

Not sure with which problem your are stuck with, but maybe my solution works for you aswell (if its the same problem):
#13 (comment)

@talk1about
Copy link

now, in Dec 2021, same issue hits me when i try to upgrade kalipi-kernel from 5.4.83-20210516 to 5.4.83-20211204.
your solution, renaming that directory worked, thanks!

Same problem here, upgrading from 4.19.81 to 4.19.93. I "fixed" it by renaming the folder Overlays, after that the process went through as aspected and was completed successfully. Just rename or delete the folder /boot/overlays, it will be recreated after the process.

@rafnek
Copy link

rafnek commented Dec 7, 2021

#13 (comment)
Glad that this simple fix can still help some people. You are welcome.

@h3b4r1
Copy link

h3b4r1 commented Dec 19, 2021

Yep, the fix worked for me too :) Thank you

@Terraminator
Copy link

Thank you I got the same Problem by installing this: kalipi-kernel_5.4.83-20211204_armhf.deb on my pi4.

@josephf123
Copy link

I had the same problem, but after renaming overlays it works for me but not 100% for what I needed. The installation was completed and prompt me to reboot. But it didn't install the mon0up and mon0down tools. Just these ones:

++++ Install kali-pi tools (kalipi-config, kalipi-tft-config)? Do you know why the monitor feature isn't installed? I am using a raspbery pi 0 w with kali 2020

Hey, I had the same problem but eventually I got it to work for me. For some reason when I tried to run mon0up, it said that it didn't exist but if you go into the directory where the kernel was installed and go into tools, there should be mon0up in there, just run it by doing "./mon0up" while in this directory. This made it work for me

@0x09AF
Copy link

0x09AF commented Jun 23, 2022

What did I do wrong here?
First I did apt update && apt full-upgrade
Yes, I forgot to remove the /boot/overlays/ folder and had an error of course.
I removed the folder (moved in my /home), tried to upgrade and ended up with the same error!!!

sudo apt update && sudo apt full-upgrade -y
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease                                                                                      
Hit:2 http://http.re4son-kernel.com/re4son kali-pi InRelease                                                                                        
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]                                                    
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]                                                                                                                              
Fetched 13.0 MB in 1min 34s (139 kB/s)                                                                                                                                                                           
Reading package lists... Done
Building dependency tree       
Reading state information... Done
26 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
bluez-firmware libasound2-data libfftw3-single3 libsamplerate0
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
firmware-atheros firmware-libertas firmware-misc-nonfree firmware-realtek libc6-dbg libglapi-mesa libpixman-1-0 libswresample3 locales
The following packages will be upgraded:
kalipi-re4son-firmware
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
85 not fully installed or removed.
Need to get 0 B/1,178 kB of archives.
After this operation, 2,730 kB of additional disk space will be used.
apt-listchanges: Reading changelogs...
(Reading database ... 106815 files and directories currently installed.)
Preparing to unpack .../kalipi-re4son-firmware_5.10.103-20220504_armhf.deb ...
Unpacking kalipi-re4son-firmware (5.10.103-20220504) over (4.19.127-20210223) ...
dpkg: error processing archive /var/cache/apt/archives/kalipi-re4son-firmware_5.10.103-20220504_armhf.deb (--unpack):
trying to overwrite '/lib/firmware/brcm/brcmfmac43436-sdio.bin', which is also in package firmware-brcm80211 1:20210315-3+rpt6
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/kalipi-re4son-firmware_5.10.103-20220504_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

EDIT: ended up apt remove firmware-brcm80211 then everything else installed/upgraded. BUT now I can't install firmware-brcm80211 because it tries to overwrite the same file /lib/firmware/brcm/brcmfmac43436-sdio.bin which now is part of the package kalipi-re4son-firmware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests