apt-get system reinstallation
NoOp
glgxg at sbcglobal.net
Wed Jul 9 16:12:35 UTC 2008
On 07/09/2008 09:00 AM, Bart Silverstrim wrote:
> Bart Silverstrim wrote:
>
>> I'm wondering if I've stumbled into the Ubuntu version of "dll
>> hell"...it's weird that FireFox works fine with flash on system A and
>> not on system B; correct me if I'm wrong, but that would imply that
>> there's something installed on system B that isn't on A and conflicts,
>> despite %99 of the software being from Synaptic/Apt-get.
>>
>> Or it implies corruption of some sort, but I haven't been getting errors
>> that I can find in logs for anything. Perhaps a way to verify all the
>> installed packages would also be handy. I'll have to dig through Google
>> and see if such a beast exists. :-)
>
> Second thought...is there a way to verify the installs against the repos
> with apt-get, and if so, would that be a way to do a "virtual reinstall"
> (check that my applications aren't corrupt and is properly installed)?
> If the repos check out against installed applications, that should mean
> the system is as stable as it would be with a reinstall of everything, no?
>
I don't know the answer to "Second thought. However, there are a couple
of things you could try:
1. Use fslint to check for bad symlinks, duplicates etc:
http://packages.ubuntu.com/hardy/admin/fslint
2. I keep this in the archives from Sundar Nagarajan:
> das ??? wrote:
>> > If I want to install the identical-package list in another machine, what
>> > is the way to do it?
>> >
>> > --
>> > das
>> >
>> >
>
>
> On the original machine (source) type:
> dpkg --get-selections | grep -v deinstall > ubuntu-files
>
> Save the output file to a location / disk that will be accessible in the
> new (target) machine.
>
> On the new machine, do a minimal install. Once you have booted into the
> new machine, do the following:
>
> sudo apt-get update
>
> sudo apt-get dist-upgrade
>
> dpkg --set-selections < ubuntu-files
>
> where ubuntu-files is the original output file that you saved.
>
> Now your new system's package management subsystem "knows" what you want
> installed. Just use dselect to install it all. Type the following:
>
> sudo dselect
>
> This will open up a dselect session. Type '/I/' and allow dselect to
> install of the the packages listed in your ubuntu-files document. When
> it's finished, type '/Q/' and hit the/ ENTER/ key to exit dselect.
>
> You should have an identical package list (or close enough).
>
>
In the meantime, I've fired up the test server & preparing to run
sktsee's command. I'll let you know what happens :-)
More information about the ubuntu-users
mailing list