Following an update from bookworm to trixie on one system, my regular user account is no longer able to edit its crontab file on that system.
When I execute "crontab -e", I receive the message: "No modification made" and an editor opens on a blank file.
The user's crontab file does exist:
sudo ls -al /var/spool/cron/crontabs shows:
-rw------- 1 n7dr crontab 2981 Sep 2 2023 n7dr
and, indeed, that file seems to be being processed correctly by cron. But I just can't read and edit it with "crontab -e" :-(
I have no idea why this system is different: the problem doesn't occur on
two other systems that have been upgraded.
When I execute "crontab -e", I receive the message: "No modification made" and an editor opens on a blank file.
When I execute "crontab -e", I receive the message: "No modification
made" and an editor opens on a blank file.
Following an update from bookworm to trixie on one system, my regular user account is no longer able to edit its crontab file on that system.
When I execute "crontab -e", I receive the message: "No modification made" and
an editor opens on a blank file.
On the machine where it works, I have VISUAL='/usr/bin/kate -b -n'...
and... if I do exactly the same on the machine that I just upgraded,
"crontab -e" suddenly works. Yay!!! Dark magic!
On Wed, 1 Jul 2026 15:27:37 -0600
"D. R. Evans" <doc.evans@gmail.com> wrote:
On the machine where it works, I have VISUAL='/usr/bin/kate -b -n'... and... if I do exactly the same on the machine that I just upgraded, "crontab -e" suddenly works. Yay!!! Dark magic!
Odd. According to apt-file, the executable for kate is where you show
it, /usr/bin. There are plenty of other useful executables there. So
that should be in your path. However, crontab may clear the path (or not inherit it). Have you exported it?
In any case, using the fully qualified path is usualy a good practice.
I'm glad that solved your problem.
Without -b, we can deduce that the Kate command line process is
sending the edit request to an "already running Kate instance", and
then terminating, at which point crontab checks the file, sees no
change, and reports the lack of changes, leaving the installed crontab unchanged.
Greg Wooledge wrote on 7/1/26 8:19 PM:
Without -b, we can deduce that the Kate command line process is
sending the edit request to an "already running Kate instance", and
then terminating, at which point crontab checks the file, sees no
change, and reports the lack of changes, leaving the installed crontab unchanged.
Yes... except that I wasn't using any other instance of kate, so it's still not entirely clear (to me, anyway) why I had to change the value of $VISUAL. [Something to do with the way the editor is invoked by crontab, perhaps?]
I now have this issue filed in my voluminous mental "I don't understand
this, but I have other things I need to worry about" file.
Greg Wooledge wrote on 7/1/26 8:19 PM:
You were, you just didn't know: kate was helpfully doing that for you :)Without -b, we can deduce that the Kate command line process is
sending the edit request to an "already running Kate instance", and
then terminating, at which point crontab checks the file, sees no
change, and reports the lack of changes, leaving the installed crontab unchanged.
Yes... except that I wasn't using any other instance of kate [...]
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 497102:18:31 |
| Calls: | 182 |
| Files: | 744 |
| D/L today: |
59 files (9,737K bytes) |
| Messages: | 73,647 |