When I try to run apt-get update I get the following error:$ sudo apt-get update/usr/lib/apt/methods/https: error while loading shared libraries: libnettd.sm.4: cannot open shared object file: No such file or directoryE: Method https has died unexpectedly!E: Sub-process https returned an error code (127)E: Method /usr/lib/apt/methods/https did not start correctlyWhen I disable all HTTPS sources (docker, gitlab-runner), apt-get runs fine and I am able to install packages.Google fails to find a library named libnett*d.sm.4.I'm running raspbian on a RaspberryPi 3:$ cat /etc/*releasePRETTY_NAME=Raspbian GNU/Linux 8 (jessie)NAME=Raspbian GNU/LinuxVERSION_ID=8VERSION=8 (jessie)ID=raspbianID_LIKE=debianHOME_URL=http://www.raspbian.org/SUPPORT_URL=http://www.raspbian.org/RaspbianForumsBUG_REPORT_URL=http://www.raspbian.org/RaspbianBugsI have tried reinstalling apt-transport-https.I have also noticed: ping6 doesn't work as well (same library). Of course I have tried disabling IPv6.Update:$ cat /etc/apt/sources.listdeb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi# Uncomment line below then 'apt-get update' to enable 'apt-get source'#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi$ cat /etc/apt/sources.list.d/*deb [arch=armhf] https://apt.dockerproject.org/repo raspbian-jessie maindeb http://archive.raspberrypi.org/debian/ jessie main ui# Uncomment line below then 'apt-get update' to enable 'apt-get source'# deb-src http://archive.raspberrypi.org/debian/ jessie main ui# this file was generated by packages.gitlab.com for# the repository at https://packages.gitlab.com/runner/gitlab-ci-multi-runner# deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/raspbian/ jessie main# deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/raspbian/ jessie mainI disabled the sources for gitlab-runner completely, docker is active in the output - if comment that line out as well, apt-get update runs fine as all active sources use http.
apt-get update with https sources broken
apt;raspbian;https
This looks like disk corruption; it should be looking for libnettle.so.4.To fix this particular issue, I suspect you should reinstall libcurl3-gnutls:apt-get --reinstall install libcurl3-gnutls(as root).This may not be the culprit though; to identify other corrupted files (at least, those installed from packages), you can use debsums:debsums -c(after installing it if necessary using apt-get install debsums). You should reinstall any packages flagged by debsums -c.The debsums manpage gives this handy command to reinstall affected packages:apt-get install --reinstall $(dpkg -S $(debsums -c) | cut -d : -f 1 | sort -u)