Page 6 of 11 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 103

Thread: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

  1. #51
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    4,449
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by ventrical View Post
    Anyone know what happened to :

    sudo -i dpkg --configure -a

    I even tried it in Precise and it comes up with an error.

    My follow-up question is;

    Does there actually have to be broken packages for this to work?

    Regards,
    Ventrical
    What error is produced?

  2. #52
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by ventrical View Post
    Anyone know what happened to :

    sudo -i dpkg --configure -a

    I even tried it in Precise and it comes up with an error.

    My follow-up question is;

    Does there actually have to be broken packages for this to work?

    Regards,
    Ventrical
    Doesn't the -i mean install.
    Is it just
    Code:
    sudo dpkg --configure -a

  3. #53
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    4,449
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by stinkeye View Post
    Doesn't the -i mean install.
    Is it just
    Code:
    sudo dpkg --configure -a
    „-i“ is used as a switch for „sudo“...
    Let's see what is the error...

  4. #54
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    7,925
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by zika View Post
    „-i“ is used as a switch for „sudo“...
    Let's see what is the error...

    Exactly .. it is needed for root permissions. Back over a year ago I was doing an install/update and there was a lightning strike here. The power went out in the middle of while those packakes were being unpacked. I used that command and it worked just perfectly. Now, I guess the only way I can prove this is to do an update and emulate a power outage.

    Anyways , I was just trying to get some confirmation as there is a discussion about this in another thread.
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running 15.10 on Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0

  5. #55
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    7,925
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by stinkeye View Post
    Doesn't the -i mean install.
    Is it just
    Code:
    sudo dpkg --configure -a

    The -i is for root, However .. I tired it as you had posted and it just did nothing - no error at all. I think that command is specifically for broken packages. I ised it with the (-i) over a year ago when there was a power outage in my area and that command successfully fixed all the broken packages.
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running 15.10 on Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0

  6. #56
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    4,449
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by ventrical View Post
    The -i is for root, However .. I tired it as you had posted and it just did nothing - no error at all. I think that command is specifically for broken packages. I ised it with the (-i) over a year ago when there was a power outage in my area and that command successfully fixed all the broken packages.
    Man files are not so far away:
    Code:
    --configure package...|-a|--pending              
                  Configure a package which has been unpacked but not yet  config‐
                  ured.   If  -a  or  --pending  is  given instead of package, all
                  unpacked but unconfigured packages are configured.
    
    
                  To reconfigure a package which has already been configured,  try
                  the dpkg-reconfigure(8) command instead.
    
    
                  Configuring consists of the following steps:
    
    
                  1.  Unpack  the  conffiles, and at the same time back up the old
                  conffiles, so that they can be restored if something goes wrong.
    
    
                  2. Run postinst script, if provided by the package.

  7. #57
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    7,925
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    The:

    sudo -i dpkg --configure -a

    worked perfectly from terminal (not GUI terminal) [alt +F1 terminal]. I had dowloaded 75MB of updates and pulled the plug just as synaptic was starting to unpack the updates. Of course all packages were then updated with that command.
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running 15.10 on Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0

  8. #58
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    7,925
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by zika View Post
    Man files are not so far away:
    Code:
    --configure package...|-a|--pending              
                  Configure a package which has been unpacked but not yet  config‐
                  ured.   If  -a  or  --pending  is  given instead of package, all
                  unpacked but unconfigured packages are configured.
    
    
                  To reconfigure a package which has already been configured,  try
                  the dpkg-reconfigure(8) command instead.
    
    
                  Configuring consists of the following steps:
    
    
                  1.  Unpack  the  conffiles, and at the same time back up the old
                  conffiles, so that they can be restored if something goes wrong.
    
    
                  2. Run postinst script, if provided by the package.

    My bad ..

    It's

    sudo -i dpkg --configure -a

    not

    sudo dpkg -i --configure -a

    thanks
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running 15.10 on Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0

  9. #59
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    4,449
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by ventrical View Post
    My bad ..

    It's

    sudo -i dpkg --configure -a

    not

    sudo dpkg -i --configure -a

    thanks
    It was like that in Your original post and we (re)solved that in prevoius posts...

  10. #60
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    7,925
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Commands for (*)Ubuntu/Unity Crash Recovery

    Quote Originally Posted by zika View Post
    It was like that in Your original post and we (re)solved that in prevoius posts...
    No zika...

    Please see the correction here:

    http://ubuntuforums.org/showthread.p...4#post12607444

    which was pasted from my post here:

    http://ubuntuforums.org/showthread.p...3#post11893873

    my bad
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running 15.10 on Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0

Page 6 of 11 FirstFirst ... 45678 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •