I solve this problem adding the following line in /etc/apt/sources.list:
deb http://ftp.de.debian.org/debian sid main
After, install gcc-multilib with apt:
#apt install gcc-multilib
Answer from 4s7r0n4u7 on Stack OverflowI solve this problem adding the following line in /etc/apt/sources.list:
deb http://ftp.de.debian.org/debian sid main
After, install gcc-multilib with apt:
#apt install gcc-multilib
For me it was an architecture-issue. I was building docker image in Mac Book with M2 chip. I fixed this issue by building the Docker Image as AMD64 image instead of ARM64.
Simply build docker image by:
docker buildx build --platform linux/amd64 -t my_docker_project -f Dockerfile .
Hi, does anyone know why I can't install the package gcc-multilib on Ubuntu 20.04? It is absolutly necessary for starting a Yocto project. Does anyone know how I can fix this? (see DockerFile in description) Thanks for the support!
Docker Build failed: Package 'gcc-multilib' has no installation candidate
Ubuntu 16.04: apt fails when installing gcc-multilib
Cannot install gcc-multilib - Raspberry Pi Forums
For the people that doesn't know a lot about Yocto, here's a link : https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html
I've done this configuration on my Ubuntu 20.04 machine, but now I want to create a docker image so that I can use my mac M1 to make the processing way faster (My Ubuntu machine is an old Pentium 4).
FROM ubuntu:20.04
RUN apt-get update
&& apt-get -y install curl
&& apt-get install -y openssh-server
&& apt-get install -y gcc-multilib \
The error message is the following one:
#8 24.20 Reading package lists... #8 24.92 Building dependency tree... #8 25.04 Reading state information... #8 25.05 Package gcc-multilib is not available, but is referred to by another package. #8 25.05 This may mean that the package is missing, has been obsoleted, or #8 25.05 is only available from another source #8 25.05 #8 25.06 E: Package 'gcc-multilib' has no installation candidate
I do not often use aptitude, but in case of problems with different gcc versions and unmet dependencies, apt-get is some times unable to correct problems saying "you have held broken packages"
That's the day, you should install aptitude, and try to install the package you wish.
It clearly shows all dependencies and makes not only one suggestion.
First suggestions is often the same apt-get would do, but if you click "no" aptitude will show you another one, which maybe fits your needs better.
Give it a try!
Answer is a little late, but I often searched for problems like these and was happy about different solutions.
The observed behavior seems to result from a legitimate bug that is described at
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1365375
The above-cited report contains my short-term workaround that will render apt-get usable again.
I believe that, in essence, sudo apt-get -f install fails is a duplicate of this question.