Cannot install build-essential package

SioU

New Member
Joined
Feb 15, 2022
Messages
2
Reaction score
1
Credits
24
Greetings to everyone.
I am not an experienced Linux user so I face up a lot of admin issues (due to my ignorance).

Operating System: Linux Mint 20.3
Kernel: Linux 5.4.0-96-generic
Architecture: x86-64

Recently I installed Rust Language.
I tried to cargo run "Hello World", however it failed to compile giving back the following:
= 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

I did search about that and I found that build-essential package installation could deal the issue.
However when I entered the command:
sudo apt-get install build-essential
I got the following feedback:
The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:9.2) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

If anyone could help me I would appreciate that.
Yours sincerely, SioU!
 


Post your /etc/apt/sources.list and /etc/apt/sources.list.d
If you have inxi installed you can do inxi -r , paste the output.
 
Post your /etc/apt/sources.list and /etc/apt/sources.list.d
If you have inxi installed you can do inxi -r , paste the output.
Thank you in advance.
I have not installed inxi so I zipped what you mentioned above!
 

Attachments

  • etc_apt_sources_list.zip
    2.5 KB · Views: 205

Members online


Latest posts

Top