the_andyman12
Posts: 2
Joined: Fri May 17, 2019 4:51 am

apt is broken and cant find any solutions

Fri May 17, 2019 5:20 am

my apt is broken and I have been searching for answers for several hours on how to reinstall it. I have a raspi 3
and here are the errors I get.

if i do

Code: Select all

sudo apt-get update
i get

Code: Select all

apt-get: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory
I have tried t reinstall it but when I do

Code: Select all

sudo dpkg -i --auto-deconfigure apt_1.8.1_armhf.deb
I get

Code: Select all

(Reading database ... 123197 files and directories currently installed.)
Preparing to unpack apt_1.8.1_armhf.deb.1 ...
Unpacking apt (1.8.1) over (1.8.1) ...
dpkg: dependency problems prevent configuration of apt:
 apt depends on libapt-pkg5.0 (>= 1.7.0~alpha3~); however:
  Package libapt-pkg5.0:armhf is not configured yet.
 apt depends on libgnutls30 (>= 3.6.6); however:
  Package libgnutls30 is not installed.
 apt depends on libseccomp2 (>= 1.0.1); however:
  Package libseccomp2 is not installed.
 apt depends on libstdc++6 (>= 5.2); however:
  Version of libstdc++6:armhf on system is 4.9.2-10+deb8u1.

dpkg: error processing package apt (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Errors were encountered while processing:
 apt

the_andyman12
Posts: 2
Joined: Fri May 17, 2019 4:51 am

Re: apt is broken and cant find any solutions

Fri May 17, 2019 6:48 pm

NVM I just wiped my rasberripi and reinstalled the whole thing

gkaiseril
Posts: 570
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: apt is broken and cant find any solutions

Fri May 17, 2019 7:35 pm

You could have tried aptitude, even from the command line, to update , upgrade and install packages.

I would suspect that the specific library that caused the failure could have been down or there could have been a filter blocking your access to it.

Many times I have found waiting some hours or even days or changing network connections clears the issue.

Have you made any changes to the repository list?

Return to “General discussion”