Removed a file by accident

NoOp glgxg at sbcglobal.net
Sat Oct 9 04:55:50 UTC 2010


On 10/08/2010 09:43 PM, Stephen S. Disbrow wrote:
...
>> On 10/08/2010 08:58 PM, Stephen S. Disbrow wrote:
>>> Hello, I'm running ubuntu 10.04 with the latest updates. I
>>> accidentally removed the  /sbin/restart file. Where can I get this
>>> file  from?Can I use apt-get or something like that, or do I have to
>>> download it from somewhere? I do everything from the command line so
>>> that method might be best for me. Also how can I find out what
>>> package that file belonged to?
>>
>> http://packages.ubuntu.com/
>> Search the contents of packages
>> <http://packages.ubuntu.com/search?searchon=contents&keywords=restart&mode=exactfilename&suite=lucid&arch=any>
>> File  Packages
>> /sbin/restart upstart
>>
>> $ sudo apt-get install --reinstall upstart
>>
>> http://packages.ubuntu.com/lucid/upstart
>> if you still have problems, you can download directly:
>> http://packages.ubuntu.com/lucid/amd64/upstart/download
>> http://packages.ubuntu.com/lucid/i386/upstart/download
>> depending upon your cpu.

It is. But if the web/network connection is down perhaps one of the
cli/'apt-get' folks can tell us how to do this via the terminal. There
is a way, I've just forgotten how to do it at the moment.

As an added note: Please bottom post on this list (meaning to put your
reply at the bottom of the post. See:
<http://www.ubuntu.com/support/community/mailinglists>
[Technical guidelines
Proper quoting:]

:-)





More information about the ubuntu-users mailing list