ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.92k stars 1.9k forks source link

ldconfig failed #485

Closed shutup closed 2 years ago

shutup commented 2 years ago

image version:Armbian_22.08.0_Aml_s905d_jammy_5.10.136_server_2022.08.12.img.gz device: phicom-n1

sudo apt install  -y  git g++ build-essential pkg-config
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
g++ is already the newest version (4:11.2.0-1ubuntu1).
git is already the newest version (1:2.34.1-1ubuntu1.4).
The following NEW packages will be installed:
  pkg-config
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
Need to get 0 B/47.4 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Setting up libc-bin (2.35-0ubuntu3.1) ...
Segmentation fault
Segmentation fault
dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 139
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
ophub commented 2 years ago

armbian-fix

shutup commented 2 years ago

i try ,but no luck

armbian:~:# armbian-fix
01. Fix tmp permissions
02. Fix update-motd.d permissions
03. Fix man permissions
04. Fix man permissions
05. Fix sudo permissions
06. Fix sudo permissions
09. Fix polkit-agent-helper-1 permissions
10. Fix sudoers.so permissions
11. Fix sudoers.so permissions
12. Fix polkit-agent-helper-1 permissions
13. Fix custom banner name: Aml s905d
17. Clean up local installation packages
armbian-fix: Loading finished.
armbian:~:# ldconfig
[1]    3695 segmentation fault  ldconfig
ophub commented 2 years ago
# Are you out of space? Check the disk situation
df -hT

sudo apt update
sudo apt --purge autoremove
sudo apt-get --reinstall install libc-bin
ophub commented 2 years ago

Snip20220813_2

shutup commented 2 years ago

not sure why,i change to bulleye.maybe my image is not complete..

callMeMakerRen commented 1 year ago

又遇到了这个问题,这次花时间研究了一下,最终发现是ldconfig.real 文件损坏导致的执行ldconfig时报段错误,我校验了一下压缩包的sha256是一致的,可能是我写tf卡问题,或者balenaEtcher的问题,还好我有另一个一模一样的盒子,上面的镜像是正常的,把文件拷过来后恢复正常。不正常的时候,执行apt install xxx都大概率报

installed libc-bin package post-installation script subprocess returned error exit status 139