ucf has this one call that uses the "--date" parameter:

./ucf:        moddate="$(date +"%F %T" --date "$(stat --format '@%Y'
"$1")")"

Two things came to mind:

a) that stat() was empty, or the $1 file doesn't exist. But we then get
different errors:

$ date +"%F %T" --date 
error: a value is required for '--date <STRING>' but none was supplied

For more information, try '--help'.

$ date +"%F %T" --date "$(stat --format '@%Y' ".bashr")"
stat: cannot stat '.bashr': No such file or directory (os error 2)
2026-03-09 15:00:11


b) difference between gnudate and rust-date:
$ gnudate +"%F %T" --date 
gnudate: option '--date' requires an argument
Try 'gnudate --help' for more information.
andreas@nsnx2:~$ 

$ gnudate +"%F %T" --date "$(stat --format '@%Y' ".bashr")"
stat: cannot stat '.bashr': No such file or directory (os error 2)
2026-03-09 00:00:00

Also not the case.


But so we can start somewhere, what does your date command point at?
Run:

$ ls -la $(which date)
lrwxrwxrwx 1 root root 31 Sep 26 15:16 /usr/bin/date -> 
../lib/cargo/bin/coreutils/date


** Summary changed:

- package samba-common 2:4.23.4+dfsg-1ubuntu1 failed to install/upgrade: 
installed samba-common package post-installation script subprocess returned 
error exit status 1
+ date: extra operand `--date`

** Changed in: samba (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143699

Title:
  date: extra operand `--date`

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2143699/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to