Ubuntu Can';不要使用Snapcraft创建快照

Ubuntu Can';不要使用Snapcraft创建快照,ubuntu,rust,ubuntu-20.04,snapcraft,alacritty,Ubuntu,Rust,Ubuntu 20.04,Snapcraft,Alacritty,我正试图在ubuntu 20.04 x64上创建一个敏捷的快照。使用cargo build--release创建可执行文件效果良好。使用snapcraft创建快照时会显示错误消息: note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory collect2: error: ld re

我正试图在ubuntu 20.04 x64上创建一个敏捷的快照。使用
cargo build--release
创建可执行文件效果良好。使用
snapcraft
创建快照时会显示错误消息:

note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory
      /usr/bin/ld: cannot find crti.o: No such file or directory
      collect2: error: ld returned 1 exit status

error: aborting due to previous error
error: could not compile `libc`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Failed to run '/root/.cargo/bin/cargo +stable build --release' for 'allacrity-source': Exited with code 101.
Verify that the part is using the correct parameters and try again.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

我已经安装了上面提到的两个库:Scrt1.o和crti.o。我进一步检查了它们的位置,并编辑了我的~/.profile以包括
导出库路径=/usr/lib/x86\u 64-linux-gnu:/usr/lib32:/usr/libx32:$LIBRARY\u路径
。这也于事无补。如何解决此问题。

可能是64位与32位库不匹配