Score:0

“Unable to locate package” after a crash installing other package with apt-get

ua flag

After a crash installing java with apt-get, I was trying to install maven, but apt wasn't finding:

> sudo apt-get install maven
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package maven

Already tried everything described here: "Unable to locate package" while trying to install packages with APT

But nothing helped, I found a solution but can't post there because I don't have enough reputation.

Score:0
ua flag

the only thing that worked for me was to remove lists and then update:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update

then I tried to install maven and apt found the package

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.