[Bug 2130706] Re: /usr/share/rustc change from directory to symlink
Max Gilmour
2130706 at bugs.launchpad.net
Fri Nov 14 17:23:38 UTC 2025
Hi Skia, thanks for the report!
Confirmed — the upgrade story is broken when transitioning from pre-
versioned rustc (provided by the rustc source package) to versioned
rustc (provided by rust-defaults).
Currently, this is only possible when upgrading from Noble to Plucky or
Noble to Resolute.
==============
24.04 to 25.04
==============
root at rust-upgrade:~# lsb_release -d
No LSB modules are available.
Description: Ubuntu 24.04.3 LTS
root at rust-upgrade:~# apt update && apt upgrade -y
[...]
root at rust-upgrade:~# apt install -y rustc
[...]
root at rust-upgrade:~# ls -l /usr/share | grep rustc
drwxr-xr-x 3 root root 4096 Nov 14 16:54 rustc
root at rust-upgrade:~# sed -i 's/Prompt=lts/Prompt=normal/g' /etc/update-manager/release-upgrades
root at rust-upgrade:~# do-release-upgrade
[...]
root at rust-upgrade:~# lsb_release -d
Description: Ubuntu 25.04
root at rust-upgrade:~# ls -l /usr/share | grep rustc
drwxr-xr-x 2 root root 4096 Nov 14 16:59 rustc
drwxr-xr-x 3 root root 4096 Nov 14 16:59 rustc-1.84
root at rust-upgrade:~# ls -Ll /usr/share/rustc
total 0
==============
24.04 to devel
==============
root at rust-upgrade-lts:~# lsb_release -d
No LSB modules are available.
Description: Ubuntu 24.04.3 LTS
root at rust-upgrade-lts:~# apt update && apt upgrade -y
[...]
root at rust-upgrade-lts:~# apt install -y rustc
[...]
root at rust-upgrade-lts:~# ls -l /usr/share | grep rustc
drwxr-xr-x 3 root root 4096 Nov 14 17:07 rustc
root at rust-upgrade-lts:~# do-release-upgrade -d
[...]
root at rust-upgrade-lts:~# lsb_release -d
Description: Ubuntu Resolute Raccoon (development branch)
root at rust-upgrade-lts:~# ls -l /usr/share | grep rustc
drwxr-xr-x 2 root root 4096 Nov 14 17:14 rustc
drwxr-xr-x 3 root root 4096 Nov 14 17:14 rustc-1.88
root at rust-upgrade-lts:~# ls -Ll /usr/share/rustc
total 0
===================================================
Expected contents of /usr/share/rustc after upgrade
===================================================
root at expected:~# lsb_release -d
Description: Ubuntu Resolute Raccoon (development branch)
root at expected:~# apt update && apt upgrade -y
[...]
root at expected:~# apt install rustc -y
[...]
root at expected:~# ls -Ll /usr/share/rustc
total 8
-rw-r--r-- 1 root root 684 Aug 22 22:42 architecture.mk
drwxr-xr-x 2 root root 4096 Nov 14 17:09 bin
** Changed in: rustc (Ubuntu)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rustc in Ubuntu.
https://bugs.launchpad.net/bugs/2130706
Title:
/usr/share/rustc change from directory to symlink
Status in rustc package in Ubuntu:
In Progress
Status in rustc source package in Plucky:
In Progress
Status in rustc source package in Resolute:
In Progress
Bug description:
Hello Max!
Here is your bug about the upgrade path for /usr/share/rustc change from being a directory in whatever older rust-default version to being a symlink in the newest ones.
Basically we'll need to make sure that the newest packages will remove any existing directory to be able to replace it with a symlink.
For the context, I faced that situation on my Ubuntu devel (right now
resolute) laptop, that is basically rolling release, so I'm not sure
how normal users are affected right now.
Happy bug fixing :-)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc/+bug/2130706/+subscriptions
More information about the foundations-bugs
mailing list