Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Upgrade to NEW Kernel - Clean the old.

Post your How to's here


Upgrade to NEW Kernel - Clean the old.

Postby Admin-Amir » Sun Feb 07, 2010 6:32 am

Kernel.png
1



Hello everyone .


Upgrading kernel system U.E - And Clean the old 2.6.31.19
Updates the user that his system regularly,
Found that in recent days appeared upgrading kernel update manager system.

Well at first glance, the upgrading is upgrading itself extreme things,
And increase the process of upgrading an old computer, heavy feeling something I'd say.
This problem gets resolved quickly by performing The scripts Removing previous kernel 2.6.31.17.
After removing the old system the previous kernel relief work system.

Well, advice to the user is to remove the kernel / s earlier if they are still on the system.
You can read my previous post about loads of double / triple of Kernels system.
In general only those who had not yet read on the subject,
Kernels cleaning process a lot earlier release memory,
Rulings, etc. unnecessary packages.
I think next week will be accompanied by further updates in different packages.


I add you / Estate the process of cleaning The previous Kernels / old packages,
For rapid process in question.
Open Terminal - copy and paste the following commands to perform the process.
Have to approve the actions of cleanliness when you ask to continue or stop - Y-N.
Have to choose - Y.



First action.


Code: Select all
 wget Http://www.opendesktop.org/CONTENT/content-files/71529-ubucleaner.sh



Second action password using "Root" user.

Code: Select all
 sudo chmod +x 71529-ubucleaner.sh



A third action - cleaning process is done at this time.


Code: Select all
 sudo ./71529-ubucleaner.sh



Here is the process before you upgrade to 2.6.31.19,
That you cab see all the process that the script dose During the run.
and after the First clean up of the 3 oldest Kernels+packages you can upgrade the new Kernel.
After the new Kernel was installed on you machine - please restart your machine,
And see that all work well for you!!!
If all goo's well and the system work for you good,
This will be the time to go back and make the process for the second time to clean the 2.6.31.17.

Here is the First process on my machine with the working script for you.



admin-amir@admin-amir:~$ wget http://www.opendesktop.org/CONTENT/cont ... cleaner.sh
--2010-01-12 00:46:04-- http://www.opendesktop.org/CONTENT/cont ... cleaner.sh
Resolving http://www.opendesktop.org... 87.106.93.179
Connecting to http://www.opendesktop.org|87.106.93.179|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 978 [application/x-sh]
Saving to: `71529-ubucleaner.sh.1'

100%[======================================>] 978 --.-K/s in 0s

2010-01-12 00:46:04 (43.1 MB/s) - `71529-ubucleaner.sh.1' saved [978/978]

Exiting...
admin-amir@admin-amir:~$ sudo ./71529-ubucleaner.sh
Cleaning apt cache...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Removing old config files...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
apport-hooks-medibuntu{p} audacious{p} azureus{p} devede{p} dvdisaster{p}
edubuntu-artwork{p} gnome-do{p} klinkstatus-kde3{p} kommander-kde3{p}
lesstif2{p} libaudclient2{p} libaudcore1{p} libaudid3tag2{p}
libaudutil1{p} libavcodec-extra-52{p} libavformat-extra-52{p}
libavutil-extra-49{p} libawn-extras0{p} libbinio1ldbl{p}
libboost-filesystem1.38.0{p} libboost-system1.38.0{p}
libboost-thread1.38.0{p} libdynamite0{p} libempathy-gtk28{p}
libempathy30{p} libfluidsynth1{p} libmcs1{p} libmowgli1{p} liborange0{p}
libpostproc-extra-51{p} libsad2{p} libsdl-gfx1.2-4{p} libsdl-sound1.2{p}
libswscale-extra-0{p} libsynce0{p} libtorrent-rasterbar5{p}
libunshield0{p} libwxsvg0{p} mandvd{p} miro{p} pmount{p} python2.4{p}
python2.4-minimal{p} qdvdauthor{p} quanta{p} screenlets{p} thunderbird{p}
transmission-gtk{p} ubuntu-artwork{p} wine{p} wine-doors{p}
xpdf-common{p} xpdf-reader{p} xsplash{p}
0 packages upgraded, 0 newly installed, 54 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 591329 files and directories currently installed.)
Removing apport-hooks-medibuntu ...
Purging configuration files for apport-hooks-medibuntu ...
Removing audacious ...
Purging configuration files for audacious ...
Removing azureus ...
Purging configuration files for azureus ...
Removing devede ...
Purging configuration files for devede ...
Removing dvdisaster ...
Purging configuration files for dvdisaster ...
Removing edubuntu-artwork ...
Purging configuration files for edubuntu-artwork ...
Removing gnome-do ...
Purging configuration files for gnome-do ...
Removing klinkstatus-kde3 ...
Purging configuration files for klinkstatus-kde3 ...
Removing kommander-kde3 ...
Purging configuration files for kommander-kde3 ...
Removing lesstif2 ...
Purging configuration files for lesstif2 ...
Removing libaudclient2 ...
Purging configuration files for libaudclient2 ...
Removing libaudcore1 ...
Purging configuration files for libaudcore1 ...
Removing libaudid3tag2 ...
Purging configuration files for libaudid3tag2 ...
Removing libaudutil1 ...
Purging configuration files for libaudutil1 ...
Removing libavcodec-extra-52 ...
Purging configuration files for libavcodec-extra-52 ...
Removing libavformat-extra-52 ...
Purging configuration files for libavformat-extra-52 ...
Removing libavutil-extra-49 ...
Purging configuration files for libavutil-extra-49 ...
Removing libawn-extras0 ...
Purging configuration files for libawn-extras0 ...
Removing libbinio1ldbl ...
Purging configuration files for libbinio1ldbl ...
Removing libboost-filesystem1.38.0 ...
Purging configuration files for libboost-filesystem1.38.0 ...
Removing libboost-system1.38.0 ...
Purging configuration files for libboost-system1.38.0 ...
Removing libboost-thread1.38.0 ...
Purging configuration files for libboost-thread1.38.0 ...
Removing libdynamite0 ...
Purging configuration files for libdynamite0 ...
Removing libempathy-gtk28 ...
Purging configuration files for libempathy-gtk28 ...
Removing libempathy30 ...
Purging configuration files for libempathy30 ...
Removing libfluidsynth1 ...
Purging configuration files for libfluidsynth1 ...
Removing libmcs1 ...
Purging configuration files for libmcs1 ...
Removing libmowgli1 ...
Purging configuration files for libmowgli1 ...
Removing liborange0 ...
Purging configuration files for liborange0 ...
Removing libpostproc-extra-51 ...
Purging configuration files for libpostproc-extra-51 ...
Removing libsad2 ...
Purging configuration files for libsad2 ...
Removing libsdl-gfx1.2-4 ...
Purging configuration files for libsdl-gfx1.2-4 ...
Removing libsdl-sound1.2 ...
Purging configuration files for libsdl-sound1.2 ...
Removing libswscale-extra-0 ...
Purging configuration files for libswscale-extra-0 ...
Removing libsynce0 ...
Purging configuration files for libsynce0 ...
Removing libtorrent-rasterbar5 ...
Purging configuration files for libtorrent-rasterbar5 ...
Removing libunshield0 ...
Purging configuration files for libunshield0 ...
Removing libwxsvg0 ...
Purging configuration files for libwxsvg0 ...
Removing mandvd ...
Purging configuration files for mandvd ...
Removing miro ...
Purging configuration files for miro ...
Removing pmount ...
Purging configuration files for pmount ...
Removing python2.4 ...
Purging configuration files for python2.4 ...
Removing python2.4-minimal ...
Purging configuration files for python2.4-minimal ...
Removing qdvdauthor ...
Purging configuration files for qdvdauthor ...
Removing quanta ...
Purging configuration files for quanta ...
Removing screenlets ...
Purging configuration files for screenlets ...
Removing thunderbird ...
Purging configuration files for thunderbird ...
Removing transmission-gtk ...
Purging configuration files for transmission-gtk ...
Removing ubuntu-artwork ...
Purging configuration files for ubuntu-artwork ...
Removing wine ...
Purging configuration files for wine ...
Removing wine-doors ...
Purging configuration files for wine-doors ...
Removing xpdf-common ...
Purging configuration files for xpdf-common ...
Removing xpdf-reader ...
Purging configuration files for xpdf-reader ...
Removing xsplash ...
Purging configuration files for xsplash ...
Processing triggers for menu ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

Removing old kernels...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
linux-headers-rt
The following packages will be REMOVED:
linux-headers-2.6.31-14{p} linux-headers-2.6.31-14-generic{p}
linux-headers-2.6.31-15{p} linux-headers-2.6.31-15-generic{p}
linux-headers-2.6.31-16{p} linux-headers-2.6.31-16-generic{p}
linux-headers-2.6.31-9-rt{p} linux-image-2.6.31-14-generic{p}
linux-image-2.6.31-15-generic{p} linux-image-2.6.31-16-generic{p}

0 packages upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 526MB will be freed.
The following packages have unmet dependencies:
linux-headers-rt: Depends: linux-headers-2.6.31-9-rt but it is not installable
The following actions will resolve these dependencies:

Remove the following packages:
linux-headers-rt

Leave the following dependencies unresolved:
ubuntustudio-desktop recommends linux-headers-rt
Score is -81

Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
linux-headers-2.6.31-14{p} linux-headers-2.6.31-14-generic{p}
linux-headers-2.6.31-15{p} linux-headers-2.6.31-15-generic{p}
linux-headers-2.6.31-16{p} linux-headers-2.6.31-16-generic{p}
linux-headers-2.6.31-9-rt{p} linux-headers-rt{a}
linux-image-2.6.31-14-generic{p} linux-image-2.6.31-15-generic{p}
linux-image-2.6.31-16-generic{p}
0 packages upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 526MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 591296 files and directories currently installed.)
Removing linux-headers-2.6.31-14-generic ...
Removing linux-headers-2.6.31-14 ...
Removing linux-headers-2.6.31-15-generic ...
Removing linux-headers-2.6.31-15 ...
Removing linux-headers-2.6.31-16-generic ...
Removing linux-headers-2.6.31-16 ...
(Reading database ... 538004 files and directories currently installed.)
Removing linux-headers-rt ...
(Reading database ... 538001 files and directories currently installed.)
Removing linux-headers-2.6.31-9-rt ...
Removing linux-image-2.6.31-14-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Purging configuration files for linux-image-2.6.31-14-generic ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Removing linux-image-2.6.31-15-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Purging configuration files for linux-image-2.6.31-15-generic ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Removing linux-image-2.6.31-16-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms
Uninstalling: vboxnetflt 3.1.0 (2.6.31-16-generic) (i686)

-------- Uninstall Beginning --------
Module: vboxnetflt
Version: 3.1.0
Kernel: 2.6.31-16-generic (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxnetflt.ko:
- Uninstallation
- Deleting from: /lib/modules/2.6.31-16-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod........

DKMS: uninstall Completed.
Uninstalling: vboxnetadp 3.1.0 (2.6.31-16-generic) (i686)

-------- Uninstall Beginning --------
Module: vboxnetadp
Version: 3.1.0
Kernel: 2.6.31-16-generic (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxnetadp.ko:
- Uninstallation
- Deleting from: /lib/modules/2.6.31-16-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....

DKMS: uninstall Completed.
Uninstalling: vboxdrv 3.1.0 (2.6.31-16-generic) (i686)

-------- Uninstall Beginning --------
Module: vboxdrv
Version: 3.1.0
Kernel: 2.6.31-16-generic (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
- Uninstallation
- Deleting from: /lib/modules/2.6.31-16-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....

DKMS: uninstall Completed.
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found memtest86+ image: /boot/memtest86+.bin
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.31-16-generic ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

Emptying every trashes...
Script Finished!


Now install the Kernel upgrade 2.6.31.19,
Restart you machine - see that all goo's well and the system work O.K.
Then you can go back to this script and you can clean the old Kernel 2.6.31.17.
At the end you will stay with = 2.6.31.19 = the new Kernel.
Admin-Amir
 

Return to How To's (Do not post questions please)

Who is online

Users browsing this forum: No registered users and 5 guests