Discussion:
last(1) missing after upgrade from 12.5 to sid (util-linux 2.38.1 to 2.40.1-4)
(too old to reply)
t***@tommiller.us
2024-06-04 04:40:01 UTC
Permalink
Hello!

last(1) seems to have disappeared following an upgrade from 12.5 to sid.

More info is shown below. What is my mistake? Or, could it be a bug?

Please send me copies of replies since I am not subscribed to this list.

Thanks for your help!

Best!

Tom

--------<8>--------

# Prior to upgrade, last(1) is present in 12.5

***@lol ~ # cat /etc/debian_version
12.5
***@lol ~ # which last
/usr/bin/last
***@lol ~ # last --version
last from util-linux 2.38.1
***@lol ~ #

# Update, upgrade, and reboot 12.5 to prepare for sid

***@lol ~ # apt-get update && apt-get full-upgrade -y

[reboot]

***@lol ~ # last --version
last from util-linux 2.38.1
***@lol ~ #

# Edit sources.list

***@lol ~ # cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ unstable main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ unstable main contrib non-free non-free-firmware
***@lol ~ #

# Snips from command line during upgrade from 12.5 to sid

***@lol ~ # apt-get update && apt-get full-upgrade -y

Get:215 http://deb.debian.org/debian unstable/main amd64 util-linux amd64 2.40.1-4 [1,210 kB]
Get:216 http://deb.debian.org/debian unstable/main amd64 util-linux-extra amd64 2.40.1-4 [262 kB]

Get:351 http://deb.debian.org/debian unstable/main amd64 util-linux-locales all 2.40.1-4 [2,897 kB]

Preparing to unpack .../util-linux_2.40.1-4_amd64.deb ...
Unpacking util-linux (2.40.1-4) over (2.38.1-5+deb12u1) ...
Setting up util-linux (2.40.1-4) ...
fstrim.service is a disabled or a static unit not running, not starting it.
(Reading database ... 34837 files and directories currently installed.)
Preparing to unpack .../util-linux-extra_2.40.1-4_amd64.deb ...
Adding 'diversion of /sbin/ctrlaltdel to /sbin/ctrlaltdel.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/fsck.cramfs to /sbin/fsck.cramfs.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/fsck.minix to /sbin/fsck.minix.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/mkfs.bfs to /sbin/mkfs.bfs.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/mkfs.cramfs to /sbin/mkfs.cramfs.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/mkfs.minix to /sbin/mkfs.minix.usr-is-merged by util-linux-extra'
Unpacking util-linux-extra (2.40.1-4) over (2.38.1-5+deb12u1) ...
Setting up util-linux-extra (2.40.1-4) ...
(Reading database ... 34879 files and directories currently installed.)

# last(1) seems gone even before reboot; still gone following reboot

***@lol ~ # last --version
-bash: /usr/bin/last: No such file or directory
***@lol ~ #

***@lol ~ # systemctl reboot

***@lol ~ # cat /etc/debian_version
trixie/sid
***@lol ~ # which which
/usr/bin/which
***@lol ~ # which last
***@lol ~ # man last
No manual entry for last
***@lol ~ #

========>8<========
Ash Joubert
2024-06-04 05:40:01 UTC
Permalink
Post by t***@tommiller.us
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
I remember seeing in the NEWS for util-linux that last(1) was moved to
the wtmpdb package:


$ zcat /usr/share/doc/util-linux/NEWS.Debian.gz
util-linux (2.40.1-2) unstable; urgency=medium

* last(1) has been split off to the wtmpdb package.
If you find last(1) useful, please install wtmpdb and accept the
default
PAM configuration changes from libpam-wtmpdb.
* lastb(1) is removed. Please see syslog/journal for failed login
attempts.

-- Chris Hofstaedtler <***@debian.org> Wed, 29 May 2024 23:52:19 +0200


Kind regards,
--
Ash Joubert (they/them) <***@transient.nz>
Director / Game Developer
Transient Software Limited <https://transient.nz/>
New Zealand
t***@tommiller.us
2024-06-04 06:00:01 UTC
Permalink
Post by t***@tommiller.us
Hello!
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
More info is shown below. What is my mistake? Or, could it be a bug?
Please send me copies of replies since I am not subscribed to this list.
Thanks for your help!
Best!
Tom
--------<8>--------
# Prior to upgrade, last(1) is present in 12.5
12.5
/usr/bin/last
last from util-linux 2.38.1
# Update, upgrade, and reboot 12.5 to prepare for sid
[reboot]
last from util-linux 2.38.1
# Edit sources.list
deb http://deb.debian.org/debian/ unstable main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ unstable main contrib non-free non-free-firmware
# Snips from command line during upgrade from 12.5 to sid
Get:215 http://deb.debian.org/debian unstable/main amd64 util-linux amd64 2.40.1-4 [1,210 kB]
Get:216 http://deb.debian.org/debian unstable/main amd64 util-linux-extra amd64 2.40.1-4 [262 kB]
Get:351 http://deb.debian.org/debian unstable/main amd64 util-linux-locales all 2.40.1-4 [2,897 kB]
Preparing to unpack .../util-linux_2.40.1-4_amd64.deb ...
Unpacking util-linux (2.40.1-4) over (2.38.1-5+deb12u1) ...
Setting up util-linux (2.40.1-4) ...
fstrim.service is a disabled or a static unit not running, not starting it.
(Reading database ... 34837 files and directories currently installed.)
Preparing to unpack .../util-linux-extra_2.40.1-4_amd64.deb ...
Adding 'diversion of /sbin/ctrlaltdel to /sbin/ctrlaltdel.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/fsck.cramfs to /sbin/fsck.cramfs.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/fsck.minix to /sbin/fsck.minix.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/mkfs.bfs to /sbin/mkfs.bfs.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/mkfs.cramfs to /sbin/mkfs.cramfs.usr-is-merged by util-linux-extra'
Adding 'diversion of /sbin/mkfs.minix to /sbin/mkfs.minix.usr-is-merged by util-linux-extra'
Unpacking util-linux-extra (2.40.1-4) over (2.38.1-5+deb12u1) ...
Setting up util-linux-extra (2.40.1-4) ...
(Reading database ... 34879 files and directories currently installed.)
# last(1) seems gone even before reboot; still gone following reboot
-bash: /usr/bin/last: No such file or directory
trixie/sid
/usr/bin/which
No manual entry for last
========>8<========
Thanks to the kind person who sent me:

-------->8<--------

***@lol ~ # zcat /usr/share/doc/util-linux/NEWS.Debian.gz
util-linux (2.40.1-2) unstable; urgency=medium

* last(1) has been split off to the wtmpdb package.
If you find last(1) useful, please install wtmpdb and accept the default
PAM configuration changes from libpam-wtmpdb.
* lastb(1) is removed. Please see syslog/journal for failed login attempts.

-- Chris Hofstaedtler <***@debian.org> Wed, 29 May 2024 23:52:19 +0200
***@lol ~ #

========>8<========
songbird
2024-06-04 19:50:01 UTC
Permalink
Post by t***@tommiller.us
Hello!
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
...

i've been using the "more" command provided by the util-linux
package.


songbird
e***@gmx.us
2024-06-04 20:20:01 UTC
Permalink
Post by songbird
Post by t***@tommiller.us
Hello!
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
...
i've been using the "more" command provided by the util-linux
package.
How do you use "more" to do what "last" does?

--
Q: What did one photon say to the other photon?
A: I'm sick and tired of your interference. -- thebigmike1983 on Fark
songbird
2024-06-05 01:10:01 UTC
Permalink
Post by e***@gmx.us
Post by songbird
Post by t***@tommiller.us
Hello!
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
...
i've been using the "more" command provided by the util-linux
package.
How do you use "more" to do what "last" does?
correct, i messed up, i was thinking of less. oops! sorry... :)


songbird

Ash Joubert
2024-06-04 20:30:01 UTC
Permalink
Post by songbird
Post by t***@tommiller.us
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
i've been using the "more" command provided by the util-linux
package.
You might be thinking of less(1), a program similar to more(1). The
original post refers to last(1), which lists logins.

Cheers,
--
Ash Joubert (they/them) <***@transient.nz>
Director / Game Developer
Transient Software Limited <https://transient.nz/>
New Zealand
songbird
2024-06-05 01:00:01 UTC
Permalink
Post by Ash Joubert
Post by songbird
Post by t***@tommiller.us
last(1) seems to have disappeared following an upgrade from 12.5 to sid.
i've been using the "more" command provided by the util-linux
package.
You might be thinking of less(1), a program similar to more(1). The
original post refers to last(1), which lists logins.
yes, i was mistaken.


songbird
Loading...