[Bug 2130706] Re: /usr/share/rustc change from directory to symlink

Max Gilmour 2130706 at bugs.launchpad.net
Mon Dec 8 18:37:26 UTC 2025


> Hello, this is currently blocking me from continuing to package cargo-audit. I upgraded from > Noble to Questing and can't get /usr/share/rustc/architecture.mk to work.
> 
> Do we have a workaround?

The workaround is reinstalling the package:

root at test:~# lsb_release -d
Description:	Ubuntu 25.10
root at test:~# apt-cache policy rustc
rustc:
  Installed: 1.85.1ubuntu1
  Candidate: 1.85.1ubuntu1
  Version table:
 *** 1.85.1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu questing/main amd64 Packages
        100 /var/lib/dpkg/status
root at test:~# ls -lL /usr/share/rustc
total 0
root at test:~# apt remove -y rustc && apt install rustc -y
[...]
root at test:~# ls -lL /usr/share/rustc
total 8
-rw-r--r-- 1 root root  684 Aug 19 20:50 architecture.mk
drwxr-xr-x 2 root root 4096 Dec  8 18:32 bin

-- 
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