Cannot install multiarch libstdc++-7-dev:armhf and libstdc++-7-dev:amd64 on Ubuntu 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The Ubuntu packages of libstdc+
The error is:
dpkg: error processing archive /tmp/apt-
trying to overwrite shared '/usr/include/
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/tmp/apt-
To reproduce:
docker run -it ubuntu:bionic /bin/bash
apt update && apt install clang libstdc+
echo -e "#include <string>\nint main() { std::string a; }" > test.cpp
dpkg --add-architecture armhf
sed -i 's/deb /deb [arch=amd64] /' /etc/apt/
apt update && apt install libstdc+
# here is the bug
dpkg: error processing archive /tmp/apt-
trying to overwrite shared '/usr/include/
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/tmp/apt-
# manually removing "random" allows package to install
rm /usr/include/
apt -f install
clang++ -target arm-linux-gnueabihf test.cpp
# WORKS
Changed in gcc-7 (Ubuntu): | |
status: | New → Confirmed |
Hi,
These packages are official Ubuntu packages [1], they are not from the PPA provided by this team. You should report the issue against the gcc-7 package [2] Ubuntu package.
[1] https:/ /launchpad. net/ubuntu/ +source/ gcc-7/7. 3.0-27ubuntu1~ 18.04 /launchpad. net/ubuntu/ +source/ gcc-7
[2] https:/