0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

The following packages have unmet dependencies: libc6-dev

Posted at

症状

以下のように、libc6-devのエラーがでて、何も入れられなくなったとき

$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get install -y build-essential
..snip..
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

ubuntu install直後なのに、上が出て、何にも環境設定ができなくなったが、、、

対処方法

$ sudo apt-get install -f --fix-broken

効果なし

$ sudo apt-get install apptitude
$ sudo apptitude install libc6-dev

直った! apt-get installでbuild-essentialなど各種installができるように

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?