Score:0

Failed to login from TTY1 (from recovery mode) cannot execute /bin/bash/: no such file or directory

cn flag

I was trying to install wine to run a Windows program on Ubuntu 20.04. There was a problem installing wine because of dependency packages. I followed some instructions to manually install the dependency packages but while installing the first package (which I don’t remember now) I realized that something big/fatal is about to happen in my Ubuntu and I tried to halt the installation. Afterwards my computer took a while trying to shutdown with a message “Unattended upgrade in progress during shutdown, please don’t turn off the computer”. When I tried to turn it on again, it didn’t boot. I went to the GRUB menu and selected Ubuntu to boot, it leads me to the tty1 terminal and I can’t log in from it. I went to the GRUB menu again and tried to open the recovery mode for diagnostics/fixing and this directs me to the tty1 terminal too. When I try to login with my user name and password, I get this message: Cannot execute /bin/bash/: No such file or directory

I don’t know what went wrong and I don’t know how to fix/diagnose it. What should I do to fix this?

user535733 avatar
cn flag
The inability to login due to the error `Cannot execute /bin/bash/: No such file or directory` suggests major damage to your filesystem. Use a different machine to create a 20.04 Live USB. Use the LiveUSB to boot your machine. Backup all your data from your machine on to some other media. Then reinstall Ubuntu.
Ruwaa Mohamed avatar
cn flag
Thank you very much.. I will try to get my data from the hard disk.
Ruwaa Mohamed avatar
cn flag
Is there a way to fix it instead of reinstalling?
user535733 avatar
cn flag
You cannot tell us what your input was. You cannot tell us what your output was. You have not been able to access logs. So we don't know what happened. We have only a single data point: That bash is apparently not installed anymore. We don't **know** if it can be fixed or not. It can perhaps be fixed...if you already have the skills to use a LiveUSB environment, to read and understand your logs, to chroot, and to use dpkg. But teaching you each step to diagnose the actual problem --and waiting for feedback-- will take a week. The fast, easy solution is to backup and reinstall.
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.