Skip to content

Works once - then stops #1522

@varadins

Description

@varadins

Just installed thefuck and used it once on a shutdown -r now command. After the reboot, it's no longer functioning

brew install thefuck

Added the following to my .bashrc

eval $(thefuck --alias)
# You can use whatever you want as an alias, like for Mondays:
eval $(thefuck --alias FUCK)

Successful use after installation


docker@docker1:~$ shutdown -r now
Call to Reboot failed: Interactive authentication required.
docker@docker1:~$ fuck
sudo shutdown -r now [enter/↑/↓/ctrl+c]
[sudo] password for docker: 

Broadcast message from root@docker1 on pts/1 (Tue 2025-08-05 16:23:26 EDT):

The system will reboot now!

Upon login I received two messages with the motd.

Welcome to Ubuntu 24.04.2 LTS (GNU/Linux 6.14.0-27-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

Expanded Security Maintenance for Applications is enabled.

0 updates can be applied immediately.

Last login: Tue Aug  5 09:43:53 2025 from 192.168.1.60
Command 'thefuck' not found, but can be installed with:
sudo apt install thefuck
Command 'thefuck' not found, but can be installed with:
sudo apt install thefuck

When attempting to use the command, I get an error that it's already been configured.

docker@docker1:~$ shutdown -r now
Call to Reboot failed: Interactive authentication required.
docker@docker1:~$ fuck
Seems like fuck alias already configured!
For applying changes run source ~/.bashrc or restart your shell.

Can you please assist me with troubleshooting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions