Score:0

How to actually find expect in debian bullseye?

cn flag

I have debian 11 (bullseye) on my system and want to install expect - but it doesn't seem to be known to apt, although it should be there according to this:

# apt-get install expect
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package expect

It may be that I have somehow corrupted my apt configuration (although I haven't knowingly touched anything); the reason I suspect this is that I decided to try to uninstall apt-file and reinstall it because it behaved strangely - now apt-get says it can't find it.

What could be the reason?

in flag
did you run `apt-get update` first? the package `expect` is there.
j4nd3r53n avatar
cn flag
@GeraldSchneider Yes, I did run apt-get update. What confuses me is that it also can't find a package I had installed previously and now wanted to reinstall.
in flag
Take a look at the [questions and answers regarding `apt broken` over at the Unix SE site](https://unix.stackexchange.com/search?q=apt+broken).
j4nd3r53n avatar
cn flag
@GeraldSchneider I've looked through the suggestions, but found nothing that addresses my issue. I'll try my question over there, if this isn't the right forum.
in flag
I already voted to migrate your question over. Cross posting is not allowed on most SE sites. But I've seen answers that should address exactly your issue. You most probably need to download and reinstall the .deb files for apt manually.
in flag
Maybe it's easier to reinstall the server and restore backups though.
j4nd3r53n avatar
cn flag
@GeraldSchneider I actually found the solution by accident just now: someone/something (and it certainly wasn't me) had commented out every line in source.list. Hard to guess why, but there you are!
in flag
Then please post this as an answer and don't forget to accept it when you can.
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.