On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
On Thu, Jul 23, 2026 at 09:15:05 -0400, Robert Heller wrote:
On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
It would help enormously if you told us what command you ran to produce
the message.
That said, the utmp file is no longer supported, partly because its
format is incompatible with 64-bit time_t.
https://www.debian.org/releases/stable/release-notes/issues.en.html#the-last-lastb-and-lastlog-commands-have-been-replaced
At Thu, 23 Jul 2026 10:12:31 -0400 Greg Wooledge <greg@wooledge.org> wrote:
- Does it happen if you don't set your prompt?On Thu, Jul 23, 2026 at 09:15:05 -0400, Robert Heller wrote:
On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
It would help enormously if you told us what command you ran to produce
the message.
I'm not running any partitular command. This message occurs at every shell prompt. I do have a set prompt in my .cshrc (I am using tcsh as my shell):
#
# set prompt
#
set me = `whoami`
if ("$me" != "root") set prompt="`hostname`% "
if ("$me" == "root") set prompt="`hostname`# "
#
On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
On Thu, Jul 23, 2026 at 12:33:32PM -0400, Robert Heller wrote:
At Thu, 23 Jul 2026 10:12:31 -0400 Greg Wooledge <greg@wooledge.org> wrote:
On Thu, Jul 23, 2026 at 09:15:05 -0400, Robert Heller wrote:
On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
It would help enormously if you told us what command you ran to produce the message.
I'm not running any partitular command. This message occurs at every shell prompt. I do have a set prompt in my .cshrc (I am using tcsh as my shell):
#
# set prompt
#
set me = `whoami`
if ("$me" != "root") set prompt="`hostname`% "
if ("$me" = "root") set prompt="`hostname`# "
#
- Does it happen if you don't set your prompt?
- does it happen if you invoke hostname directly?
- does it happen (improbable) if you invoke whoami directly?
This would help to bisect (trisect?) the problem.
Cheers
At Thu, 23 Jul 2026 18:41:49 +0200 <tomas@tuxteam.de> wrote:
On Thu, Jul 23, 2026 at 12:33:32PM -0400, Robert Heller wrote:
At Thu, 23 Jul 2026 10:12:31 -0400 Greg Wooledge <greg@wooledge.org> wrote:
Interesting: elsewhere in this thread "set watch" is named as theOn Thu, Jul 23, 2026 at 09:15:05 -0400, Robert Heller wrote:
On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
It would help enormously if you told us what command you ran to produce the message.
I'm not running any partitular command. This message occurs at every shell
prompt. I do have a set prompt in my .cshrc (I am using tcsh as my shell):
#
# set prompt
#
set me = `whoami`
if ("$me" != "root") set prompt="`hostname`% "
if ("$me" == "root") set prompt="`hostname`# "
#
- Does it happen if you don't set your prompt?
- does it happen if you invoke hostname directly?
- does it happen (improbable) if you invoke whoami directly?
I took out the 'set prompt=' commands from my .cshrc file, it still happens. It does NOT happen if I use either of the whoami and hostname commands,
On Thu, Jul 23, 2026 at 02:21:22PM -0400, Robert Heller wrote:
At Thu, 23 Jul 2026 18:41:49 +0200 <tomas@tuxteam.de> wrote:
On Thu, Jul 23, 2026 at 12:33:32PM -0400, Robert Heller wrote:
At Thu, 23 Jul 2026 10:12:31 -0400 Greg Wooledge <greg@wooledge.org> wrote:
On Thu, Jul 23, 2026 at 09:15:05 -0400, Robert Heller wrote:
On a fresh install of trixie (Debian 13), I am getting this message. Where is
it coming from?
The message is:
cannot stat /var/run/utmp. Please "unset watch".
It would help enormously if you told us what command you ran to produce
the message.
I'm not running any partitular command. This message occurs at every shell
prompt. I do have a set prompt in my .cshrc (I am using tcsh as my shell):
#
# set prompt
#
set me = `whoami`
if ("$me" != "root") set prompt="`hostname`% "
if ("$me" = "root") set prompt="`hostname`# "
#
- Does it happen if you don't set your prompt?
- does it happen if you invoke hostname directly?
- does it happen (improbable) if you invoke whoami directly?
I took out the 'set prompt=' commands from my .cshrc file, it still happens.
It does NOT happen if I use either of the whoami and hostname commands,
Interesting: elsewhere in this thread "set watch" is named as the
most probable culprit, which sounds plausible to me. Probably it's
elsewhere in your .cshrc.
Cheers
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 497102:27:09 |
| Calls: | 182 |
| Files: | 744 |
| D/L today: |
65 files (9,837K bytes) |
| Messages: | 73,659 |