Unable to solve issue

Hi all,

Ive installed afew packages and for the life of me im unable to fix the following, please HELP!

[tolga@nixos:/etc/nixos/SETUP]$ 
Traceback (most recent call last):
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 36, in _wait_output
    proc.wait(settings.wait_slow_command if is_slow
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 1270, in wait
    self._exitcode = self._proc.wait(timeout)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_pslinux.py", line 1653, in wrapper
    return fun(self, *args, **kwargs)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_pslinux.py", line 1859, in wait
    return _psposix.wait_pid(self.pid, timeout, self._name)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_psposix.py", line 137, in wait_pid
    interval = sleep(interval)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_psposix.py", line 114, in sleep
    raise TimeoutExpired(timeout, pid=pid, name=proc_name)
psutil.TimeoutExpired: timeout after 3 seconds (pid=184514)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 1185, in _send_signal
    os.kill(self.pid, sig)
PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 18, in _kill_process
    proc.kill()
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 278, in wrapper
    return fun(self, *args, **kwargs)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 1248, in kill
    self._send_signal(signal.SIGKILL)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 1195, in _send_signal
    raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: (pid=184553)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_pslinux.py", line 1754, in exe
    return readlink("%s/%s/exe" % (self._procfs_path, self.pid))
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_pslinux.py", line 210, in readlink
    path = os.readlink(path)
PermissionError: [Errno 13] Permission denied: '/proc/184553/exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/bin/.thefuck-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/entrypoints/main.py", line 31, in main
    fix_command(known_args)
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/entrypoints/fix_command.py", line 37, in fix_command
    command = types.Command.from_raw_script(raw_command)
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/types.py", line 82, in from_raw_script
    output = get_output(script, expanded)
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/output_readers/__init__.py", line 20, in get_output
    return rerun.get_output(script, expanded)
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 66, in get_output
    if _wait_output(result, is_slow):
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 41, in _wait_output
    _kill_process(child)
  File "/nix/store/653in4aprj2s66njqrrq3rjxjl72ccz2-thefuck-3.32/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 21, in _kill_process
    proc.pid, proc.exe()))
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 671, in exe
    return guess_it(fallback=err)
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 664, in guess_it
    raise fallback
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/__init__.py", line 669, in exe
    exe = self._proc.exe()
  File "/nix/store/nll88g5mx01v76qn0pv72caw4r9q39kq-python3.10-psutil-5.9.5/lib/python3.10/site-packages/psutil/_pslinux.py", line 1767, in exe

It’s an upstream bug, nothing you or NixOS are doing wrong: running `fuck` after successful `apt update` errors after several seconds · Issue #1158 · nvbn/thefuck · GitHub

That application doesn’t bother to hide stacktraces.

According to a comment on a related issue you can try to to configure this for a workaround: https://github.com/nvbn/thefuck/blob/62e0767c5069aeee176b0fe3459068b7703aaa26/README.md?plain=1#L453

1 Like

I would like to apologise in advance. I get that error after i initiated a new install after a rebuild switch. When i do a update no error’s. For exampke: If i add a new theme or application i get all these collision errors with java python etc. I used “fuck” to get the the last error output.

Tbh not interested in what “fuck” output is im more concerned about the errors during a rebuild switch.

Again i apologise for the confusion

Can you share those errors too then, as well as your config? Collisions can happen for a variety of reasons.

I just commented out enable java = true to false and commented out jre pkg . Also commented out openssl 1.1.1 something and majority of the collisions have disappeared

1 Like

If you do need more help, please share the errors - currently you only shared the stacktrace from fuck, which only tells us that fuck has a bug :wink:

1 Like