如何改回使用「gnu-coreutils」

主題

前提

由於「Ubuntu 25.10 Questing Quokka」改採用「uutils-coreutils」,

不過使用上,我遇到一些問題,感覺一些功能,還沒有和「gnu-coreutils」一致,一些我常用的指令操作後,沒有我原本預期的結果。

我個人還是習慣使用「gnu-coreutils」,所以就探尋了如何改回使用「gnu-coreutils」的方法。

簡單紀錄如下:

操作步驟

事前檢測

執行

ls --version

顯示

ls (uutils coreutils) 0.2.2

執行

cp --version

檢視

cp (GNU coreutils) 9.5
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjörn Granlund, David MacKenzie, and Jim Meyering.


主要指令

我參考這篇文章提到的,執行下面指令,就會改回使用「gnu-coreutils」。

sudo apt install coreutils-from-gnu coreutils-from-uutils- --allow-remove-essential

顯示

Installing:
  coreutils-from-gnu

REMOVING:
  coreutils-from-uutils

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  coreutils-from-uutils

Summary:
  Upgrading: 0, Installing: 1, Removing: 1, Not Upgrading: 0
  Download size: 6,748 B
  Freed space: 2,048 B

Continue? [Y/n]

按下「Enter」,確定執行。

再次確認

執行

ls --version

顯示

ls (GNU coreutils) 9.5
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.

確認已經改回使用「GNU coreutils」。

參考文章

參考文章
Migration to rust-coreutils in 25.10 / Revert mechanism

相關討論


This site uses Just the Docs, a documentation theme for Jekyll.