dpkg interrupted and i don't remember my user password

Asked by Ruben Montoya

Need superuser priveliges. Lost password.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #432717.

Revision history for this message
Chris Coulson (chrisccoulson) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug.

Revision history for this message
Lars Ljung (larslj) said :
#2

You can set a new password from recovery mode. Choose recovery mode from the boot menu and then issue the command "passwd username". Run "exit" to resume normal mode.

Revision history for this message
Ruben Montoya (arco-iris-estrella) said :
#3

Chris,

I'm sorry I don't understand, what Lars proposed. What is the boot menu?

Thanh you,
Ruben

*****************************************************************************

On Fri, Sep 18, 2009 at 4:49 PM, Lars Ljung <
<email address hidden>> wrote:

> Your question #83199 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/83199
>
> Status: Open => Answered
>
> Lars Ljung proposed the following answer:
> You can set a new password from recovery mode. Choose recovery mode from
> the boot menu and then issue the command "passwd username". Run "exit"
> to resume normal mode.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/83199/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/83199
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Daniel Hollocher (chogydan) said :
#4

Many people get a menu when you first boot, ie before Ubuntu starts to load. Sometimes it says something about a grub menu, and that you have to click some button, maybe the delete key. (Sorry, I can't quite remember). You only have a few seconds to click. That is also the menu being talked about.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

1 ---- ) First try this:

I don't remember user and password what i can do

You can do this: http://www.psychocats.net/ubuntu/resetpassword

or

To discover your user and restore (change) the password you can:

Start the pc the when you see the GRUB row...

Press ESC.

Press "e" for edit.

Highlight the line that begins kernel ………, and press "e"

Go to the very end of the line, add rw init=/bin/bash

press enter, then press "b" to boot your system.

Your system will boot up to a passwordless root shell.

Type in grep -i 1000 /etc/passwd

The system must show a row with your user name at the start of the row
for example:
danilo:x:1000:1000:ubuntu,,,:/home/danilo:/bin/bash

Here my user is danilo

Then to change your user password type in:

passwd username

or

passwd -d username

change username with your real user

Set your password.

Type in:

reboot

or

reboot -f

*******************************************
After restoring/change your password
*******************************************
2 ---- ) You strictly need to open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a

give your user password when requested, you don't see nothing when you type it, then press enter.
-------------------------------------------------------------------

But to fully check and upgrade your system using terminal using command line,
open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

then please reboot your system, type

sudo reboot

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Ruben Montoya for more information if necessary.

To post a message you must log in.