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@rust-upgrade:~# lsb_release -d
No LSB modules are available.
Description:    Ubuntu 24.04.3 LTS
root@rust-upgrade:~# apt update && apt upgrade -y
[...]
root@rust-upgrade:~# apt install -y rustc
[...]
root@rust-upgrade:~# ls -l /usr/share | grep rustc
drwxr-xr-x   3 root root  4096 Nov 14 16:54 rustc

root@rust-upgrade:~# sed -i 's/Prompt=lts/Prompt=normal/g' 
/etc/update-manager/release-upgrades
root@rust-upgrade:~# do-release-upgrade
[...]

root@rust-upgrade:~# lsb_release -d
Description:    Ubuntu 25.04
root@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@rust-upgrade:~# ls -Ll /usr/share/rustc
total 0


==============
24.04 to devel
==============
root@rust-upgrade-lts:~# lsb_release -d
No LSB modules are available.
Description:    Ubuntu 24.04.3 LTS
root@rust-upgrade-lts:~# apt update && apt upgrade -y
[...]
root@rust-upgrade-lts:~# apt install -y rustc
[...]
root@rust-upgrade-lts:~# ls -l /usr/share | grep rustc
drwxr-xr-x   3 root root  4096 Nov 14 17:07 rustc

root@rust-upgrade-lts:~# do-release-upgrade -d
[...]

root@rust-upgrade-lts:~# lsb_release -d
Description:    Ubuntu Resolute Raccoon (development branch)
root@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@rust-upgrade-lts:~# ls -Ll /usr/share/rustc
total 0

===================================================
Expected contents of /usr/share/rustc after upgrade
===================================================
root@expected:~# lsb_release -d
Description:    Ubuntu Resolute Raccoon (development branch)
root@expected:~# apt update && apt upgrade -y
[...]
root@expected:~# apt install rustc -y
[...]
root@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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130706

Title:
  /usr/share/rustc change from directory to symlink

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


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

Reply via email to