前提
ubuntu18.04上で”sudo apt upgrade”を実行したところエラーが発生してうまくいかない。
発生している問題・エラーメッセージ
Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.6) but 2.27-3ubuntu1 is installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
試したこと①/その結果
https://qiita.com/mizuhof/items/35f5f9b7892d78c406b6
サイトを参考に
$sudo apt --fix-broken installすると、
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
fonts-freefont-ttf libpython-all-dev python-all python-all-dev
python-asn1crypto python-cffi-backend python-crypto python-cryptography
python-dbus python-enum34 python-gi python-idna python-ipaddress
python-keyring python-keyrings.alt python-pkg-resources python-secretstorage
python-setuptools python-six python-wheel python-xdg
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libc6
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 411 not upgraded.
8 not fully installed or removed.
Need to get 2,211 kB of archives.
After this operation, 5,120 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com bionic-updates/main armhf libc6 armhf 2.27-3ubuntu1.6 [2,211 kB]
Fetched 2,211 kB in 3s (806 kB/s)
Preconfiguring packages ...
(Reading database ... 71382 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1.6_armhf.deb ...
readlink: invalid option -- 'm'
BusyBox v1.24.1 (2019-07-08 03:39:14 UTC) multi-call binary.
Usage: readlink [-fnv] FILE
Display the value of a symlink
-f Canonicalize by following all symlinks -n Don't add newline -v Verbose
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.6_armhf.deb (--unpack):
new libc6:armhf package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.27-3ubuntu1.6_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
試したこと②/その結果
先ほどと同様のサイトを参考に、.debファイルを強制的にインストールしようと試みるも、
$sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27-3ubuntu1.6_armhf.deb
tu1.6_armhf.deb
dpkg: error: cannot access archive '/var/cache/apt/archives/libc6_2.27-3ubuntu1.6_armhf.deb': No such file or directory
とエラーで返されてしまう。
補足情報(FW/ツールのバージョンなど)
zyboz7-20にubuntu18.04をインストールしたsdcardを差し込み、windows10のPCとteratermにてUSBで接続された環境で行っています。
勉強を始めたばかりで至らない点もあると思いますがよろしくお願いします。
あなたの回答
tips
プレビュー