crouton
crouton copied to clipboard
URGENT! xbindkeys / E: Package 'xbindkeys' has no installation candidate
name: kali-rolling
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/kali-rolling...
crouton: version 1-20220111101058~master:a9eafaee
release: kali-rolling
architecture: amd64
xmethod: xorg
targets: xfce,audio,core
host: version 14909.100.0 (Official Build) stable-channel octopus
kernel: Linux localhost 4.14.254-19192-g19e8c55302db #1 SMP PREEMPT Sat Jul 30 19:53:26 PDT 2022 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/kali-rolling...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
After successfully installing kali-rolling, I am unable to launch it because of this error...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
crosh> shell
chronos@localhost / $ sudo crouton -r kali-rolling -t xfce -u
Package xbindkeys is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'xbindkeys' has no installation candidate
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/kali-rolling...
chronos@localhost / $
Please describe your issue:
This error is inevitable because http://http.us.debian.org/debian/pool/main/x/xbindkeys/xbindkeys_1.8.6-1_amd64.deb no longer supports version 1.8.6-1. It would seem that debian dropped version 1.8.6-1 and instead updated it to 1.8.7-1. Only now, this updated xbindkeys file is under a completely different path / web address.
Here's the link I found that contains the updated version. https://packages.debian.org/bullseye/xbindkeys
# Don't know why debian changed the location of the file instead of just keeping the newer one under the same url
Unfortunately, I'm not all that well versed on this sort of thing to know the exact code required to install this package [xbindkeys_1.8.7-1.dsc] directly from the crosh terminal.
# If someone could respond with the correct code for me to copy and paste, that would be much appreciated. I'm sure this would also help hundreds of other people having the same issue dating all the way back to 2019
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// AND IF AT ALL POSSIBLE, PLEASE MAKE AN UPDATED kali-rolling INSTALLATION GUIDE TO REFLECT THESE CHANGES
PLEASE HELP! THANKS! ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
If known, describe the steps to reproduce the issue:
Kali needs xbindkeys to run, but since the specific file outlined by the installation instructions is no longer available, I have no idea what to do from here after getting the error...
E: Package 'xbindkeys' has no installation candidate
SOURCES USED:
Followed install guide from https://github.com/dnschneid/crouton/issues/4153#issuecomment-560190450
https://github.com/dnschneid/crouton/issues/4153#issuecomment-555853522 posted this as a possible solution however, this does not work either.
https://github.com/dnschneid/crouton/issues/4153#issuecomment-560190450 Although this was posted in 2019, maybe things have changed since and that's why I'm running into issues.
https://github.com/dnschneid/crouton/issues/4153#issuecomment-546689856 xbindkeys pkg seems like got removed from a repo
Unsure if Chromium OS updated security has anything to do with this issue https://github.com/dnschneid/crouton/issues/4026#issue-429041530
I am also having this exact issue.
Solution (tested):
Hey, i forked the repo and made some changes, last steps not pushed yet, but you can use this solution if you want. it is tested and working so far.
If you have problems during the setup, try to use my dev branch from repo and install with installer/crouton again. In this case, it will use the native bootstrap package from kali.
@experiencedUser @grenius
Install kali-rolling via:
crouton -r kali-rolling -t core
after that, enter your new chroot and edit the /etc/apt/sources.list with an editor of your choice. Add the following lines:
deb http://ftp.halifax.rwth-aachen.de/debian bullseye main non-free contrib
deb-src http://ftp.halifax.rwth-aachen.de/debian bullseye main non-free contrib
Now you can leave (exit) the chroot and update the chroot with new targets via: (example)
crouton -n kali-rolling -u -t cli-extra,xfce,xiwi,keyboard
All steps done, now you can use Kali linux
Edit:
@grenius
I rechecked my solution (still working) but reworked on it so we now had an target file that can be used.
(test2)iptoux@localhost:~$ sudo sh kalifix.sh
-e Adding debian bullseye repo to sources.list...
-e Update the package list...
-e installing xbindkeys...
Suggested packages:
wish xbindkeys-config
The following NEW packages will be installed:
xbindkeys
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.3 kB of archives.
After this operation, 118 kB of additional disk space will be used.
Selecting previously unselected package xbindkeys.
(Reading database ... 10837 files and directories currently installed.)
Preparing to unpack .../xbindkeys_1.8.7-1_amd64.deb ...
Unpacking xbindkeys (1.8.7-1) ...
Setting up xbindkeys (1.8.7-1) ...
-e Remove bullseye sources...
-e Update the package list...
-e All steps done!
(test2)iptoux@localhost:~$
@iptoux Thanks for the help. I'm getting this error when reconfiguring locales:
~$ sudo dpkg-reconfigure locales dpkg-query: package 'locales' is not installed and no information is available Use dpkg --info (= dpkg-deb --info) to examine archive files. /usr/sbin/dpkg-reconfigure: locales is not installed
Edit: Though i recieved this error, I continued with the installation to success! Thanks again @iptoux
@grenius Okay, thank you for your response. I will recheck on my side if the locales bug will happen again, if no then I remove the step.
Tonight or a night later, i will push all (final) to dev repo and create an pull&merge request to crouton repository.
Can I ask if you had only followed the local solution or you cloned my repo and installed with that?
Just interested, if install from repo is also working.
Thanks 👍 for testing.
@iptoux I just followed your solution exactly as posted.
@grenius @experiencedUser
This release contains an fix of the error during the installation of kali linux, where xbindkeys, can't be installed. This fix is created as target, so an easy install is given.
@grenius @experiencedUser
- Fixed an major concept bug, now all running fine and as expected.
This release contains an fix of the error during the installation of kali linux, where xbindkeys, can't be installed. This fix is created as target, so an easy install is given.
@iptoux thanks for your quick solution. Sorry for being this unexperienced, but I can't manage to follow your instructions on Kalifix.v1.0.2 (once extracted,
am I supposed to cd into which folder... ? then doing which step? Could you explain a little bit further?
Is it about extracting into /home/chronos user folder? Thank you!
@iptoux thanks for your quick solution. Sorry for being this unexperienced, but I can't manage to follow your instructions on Kalifix.v1.0.2 (once extracted,
am I supposed to cd into which folder... ? then doing which step? Could you explain a little bit further?
Is it about extracting into /home/chronos user folder? Thank you!
About
This is an target file and contains an fix, for the error during the installation of kali linux, where xbindkeys, can't be installed. Issue: #4792
What does the fix do?
The fix will add debian bullseye repository to the apt sources.list, and than install xbindkeys, xbindkeys-config. After installation the script is removing the debian bullseye repository from the sources.list file.
sudo crouton -r kali-rolling -t kalifix,xfce,...
This is only an target file, you have to follow the install steps of crouton after you have copying the target file into target directory.
Alternatively you can "compile" crouton self, for this:
- download original crouton
- download kalifix and copy it to target directory (download crouton)
- open terminal and
cd
into downloaded crouton directory - enter
make
- copy crouton to /usr/local/bin
- follow steps from quote above.
@iptoux thanks for your quick solution. Sorry for being this unexperienced, but I can't manage to follow your instructions on Kalifix.v1.0.2 (once extracted, am I supposed to cd into which folder... ? then doing which step? Could you explain a little bit further? Is it about extracting into /home/chronos user folder? Thank you!
About
This is an target file and contains an fix, for the error during the installation of kali linux, where xbindkeys, can't be installed. Issue: #4792
What does the fix do?
The fix will add debian bullseye repository to the apt sources.list, and than install xbindkeys, xbindkeys-config. After installation the script is removing the debian bullseye repository from the sources.list file.
sudo crouton -r kali-rolling -t kalifix,xfce,...
This is only an target file, you have to follow the install steps of crouton after you have copying the target file into target directory.
Alternatively you can "compile" crouton self, for this:
- download original crouton
- download kalifix and copy it to target directory (download crouton)
- open terminal and
cd
into downloaded crouton directory- enter
make
- copy crouton to /usr/local/bin
- follow steps from quote above.
IT'S WORKING !!!!!!!!!!!!!!!!!!!!!! God bless you, I've been struggling for MANY HOURS trying to find a solution to this error. Have a great week!!! <3 and thanks again for doing what you do.
@iptoux @dnschneid Hi there, by any chance could you post an updated installation guide of the entire process from start to finish? Unfortunately, I still could not get it to work with the fix you released. I think I might even need to re-flash chromeOS before I restart the process since it would seem there's leftover packages from the previous installation attempt which is contributing to the conflict.