Score:0

Segmentation fault (core dumped) on running apt-get update

pw flag

I used a Ubuntu server to run a single node K8s cluster, as I was trying to reset the cluster and removed the k8s related packages I started running into Segmentation fault (core dumped). Now even if I simply run apt-get update I can the same error along with some other errors. I researched on this and tried multiple solutions but none of them has worked. can someone help?

root@master-node:~# apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Get:6 https://esm.ubuntu.com/apps/ubuntu focal-apps-security InRelease [7556 B]
Get:7 https://esm.ubuntu.com/apps/ubuntu focal-apps-updates InRelease [7459 B]
Fetched 15.0 kB in 1s (17.8 kB/s)
Segmentation fault (core dumped)
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code

Ubuntu Version:

root@master-node:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.