This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] proxy services, webmin guide and kernel cleanup

razedafear

Wed Sep 19, 2012 3:04:13 pm

Hi

I have been using "tunnelbear" for windows to switch to US and UK proxies and works pretty well. Is there a good alternative to this? Something that is secure and anonymous?

Thanks

Wolfman

Wed Sep 19, 2012 3:10:07 pm

razedafear

Sat Sep 22, 2012 6:40:48 am

Hey Wolf

I am currently testing this squid following this tutorial,

http://www.youtube.com/watch?v=LnBG_LEvvVw&feature=plcp
will let you know how it goes. Its all command line though. needs lots of tweaking and playing with code.

Wolfman

Sat Sep 22, 2012 7:59:13 am

Have fun :D :D :D :D

razedafear

Sun Sep 23, 2012 12:20:31 pm

swarfendor437 wrote:You should notify your ISP if not using conventional methods of browsing - such as Tails Linux with TOR or BackTrack 5.1 or later with TOR! :D


But howz this affecting my ISP?

razedafear

Mon Sep 24, 2012 3:26:24 pm

i am safe coz of this - "the usual clueless call centre driven ISP'

razedafear

Mon Sep 24, 2012 3:28:24 pm

Also if you guyz can post some nice stuff about using webmin with squid, i want to try out both, found some good ones on YT, one of them is Dan's courses(a brilliant youtube channel) with huge info on this. I am looking for somethng that is like "squid and webmin for dummies" !!

razedafear

Wed Sep 26, 2012 4:29:53 am

thanxx swaf... will go through these

razedafear

Mon Oct 01, 2012 3:54:27 pm

en route to implementation for WEBMIN, stuck with this after i ran,
Code:
sudo apt-get install -f


Any idea whats throwing this error??

Following these steps here http://www.unixmen.com/201204-install-webmin-in-ubuntu-12-04/

Code:
umayrz@umayrz-HP-ProBook-4530s:~$  sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-timezonemap-1.0 libvcdinfo0 python-kde4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.2.0-31-generic (3.2.0-31.50) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-31-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
Generating grub.cfg ...
Found background: /usr/share/applications/synaptic.desktop
Unsupported image format
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-31-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-31-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-31-generic; however:
  Package linux-image-3.2.0-31-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.31.34); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                               Errors were encountered while processing:
linux-image-3.2.0-31-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

razedafear

Tue Oct 02, 2012 6:51:13 am

Here is what is happening after clicked clean.

a1.jpeg


a2.jpeg


a3.jpeg


a4.jpeg

razedafear

Tue Oct 02, 2012 6:57:35 am

then again ran sudo apt-get install -f, here is the output

Code:
 

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-timezonemap-1.0 libvcdinfo0 python-kde4
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-3.2.0-24-generic linux-image-3.2.0-27-generic
  linux-image-3.2.0-29-generic
0 upgraded, 0 newly installed, 3 to remove and 28 not upgraded.
6 not fully installed or removed.
After this operation, 447 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 271414 files and directories currently installed.)
Removing linux-image-3.2.0-24-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
Generating grub.cfg ...
Found background: /usr/share/applications/synaptic.desktop
Unsupported image format
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-24-generic.postrm line 328.
dpkg: error processing linux-image-3.2.0-24-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.2.0-27-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-27-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
Generating grub.cfg ...
Found background: /usr/share/applications/synaptic.desktop
Unsupported image format
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-27-generic.postrm line 328.
dpkg: error processing linux-image-3.2.0-27-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.2.0-29-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-29-generic /boot/vmlinuz-3.2.0-29-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-29-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-29-generic /boot/vmlinuz-3.2.0-29-generic
Generating grub.cfg ...
Found background: /usr/share/applications/synaptic.desktop
Unsupported image format
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-29-generic.postrm line 328.
dpkg: error processing linux-image-3.2.0-29-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-3.2.0-24-generic
linux-image-3.2.0-27-generic
linux-image-3.2.0-29-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


Here is what is happening when the updated manager popped up automatically. i clicked "close" and then the error popped up

a5.jpeg


a6.jpeg

razedafear

Tue Oct 02, 2012 7:02:55 am

changed the title of the post, hope that is OK here. it kinda was not inline with the issues being discussed..

Wolfman

Tue Oct 02, 2012 9:34:14 am

Hi,

for your update problem see:

viewtopic.php?f=6&t=2247

and run the part about "dpkg" first, try also changing your software sources download location.

See also:

viewtopic.php?f=6&t=3009

Regards Wolfman :D

razedafear

Tue Oct 02, 2012 12:18:47 pm

Wolfman wrote:Hi,

for your update problem see:

viewtopic.php?f=6&t=2247

and run the part about "dpkg" first, try also changing your software sources download location.

See also:

viewtopic.php?f=6&t=3009

Regards Wolfman :D



Sorry did'nt get the dpkg part u said. Do u mean sudo dpkg --configure -a? Did that.
The download source is set to main.
Here is what i get on sudo apt-get update

Code:
Fetched 26.0 MB in 2min 18s (188 kB/s)                                         
W: Failed to fetch http://download.webmin.com/download/repository/dists/sarge/Release  Unable to find expected entry 'deb/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

madvinegar

Tue Oct 02, 2012 1:37:11 pm

Try
Code:
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update


Also change your download source from "main" to your country's.

razedafear

Tue Oct 02, 2012 3:43:28 pm

madvinegar wrote:Try
Code:
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update


Also change your download source from "main" to your country's.


Switched to my country server. ran sudo rm -rf /var/lib/apt/lists/* then sudo apt-get update and it still throws error for duplicate or bad entry for webmin :(

a7.jpeg


a8.jpeg

madvinegar

Tue Oct 02, 2012 3:54:16 pm

Open terminal and write
Code:
sudo gedit /etc/apt/sources.list


search in the file to find the line that says
http://download.webmin.com/download/rep ... ge/Release
(or a line referring to the above repository) and put a "#" in front of it so as to comment it out.
Then run
Code:
sudo apt-get update


If you have difficulty, post the outcome of /etc/apt/sources/list here.

razedafear

Tue Oct 02, 2012 4:02:33 pm

Here is the output line that concerns webmin

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsoluti ... repository sarge contrib

Commented out the 2nd one and it does not give the error for webmin on sudo ap-get update, however i am still seeing dpkg errors with
Code:
  sudo dpkg --configure -a


Here is the output
Code:
umayrz@umayrz-HP-ProBook-4530s:~$ sudo dpkg --configure -a
Setting up linux-image-3.2.0-31-generic (3.2.0-31.50) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-31-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
Generating grub.cfg ...
Found background: /usr/share/applications/synaptic.desktop
Unsupported image format
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-31-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-31-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-31-generic; however:
  Package linux-image-3.2.0-31-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.31.34); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.2.0-31-generic
linux-image-generic
linux-generic

Wolfman

Tue Oct 02, 2012 4:51:16 pm

Hi,

have you tried running "dpkg"?????.

Did you change your download location for the software sources????.

Have you tried the "Force" command ????.

Regards Wolfman :D

madvinegar

Tue Oct 02, 2012 7:44:44 pm

To run dpkg you do this:

1) Plug an ethernet cable to get internet (not wifi)
2) Reboot
3) From the grub menu choose the recovery mode (usually the 2nd option).
4) From the new menu you choose "dpkg" and you let it run. This will update the system and fix broken packages (if any).

You then boot back to your desktop and see if that helped.

razedafear

Wed Oct 03, 2012 2:20:28 am

Wolfman wrote:Hi,

have you tried running "dpkg"?????.

Did you change your download location for the software sources????.

Have you tried the "Force" command ????.

Regards Wolfman :D



Not tried dpkg yet. (i mean from recovery mode), other than that i tried
Code:
sudo dpkg --configure -a
.
still throws dkpg dependencies and kernel errors.

used sudo apt-get install -f

Changed the location for software sources.

razedafear

Wed Oct 03, 2012 2:26:03 am

swarfendor437 wrote:Hi razedafear, Sorry I was not around for last postings! Firstly, I did not want you to delete your old kernels! That is why in my screenshot I highlighted the 2.31 versions which were the ones your install was not completing correctly!

If you cannot select 'fix broken packages' via Synaptic (I know it can sometimes happen) try installing Y-PPA manager by following this guide:

http://www.addictivetips.com/ubuntu-lin ... a-manager/


Then, once installed, go to the advanced icon after launch and have a go at rectifying issues with the options there - I used it to get rid of my duplicate source issue! :D


Hi Swarf

I followed the link but i am still getting dpkg errors on runnig
Code:
sudo apt-get instally-ppa-manager
. I think i will have to go off the wifi and plug in my LAN to fix the dpkg in recovery mode..

razedafear

Wed Oct 03, 2012 2:28:10 am

madvinegar wrote:To run dpkg you do this:

1) Plug an ethernet cable to get internet (not wifi)
2) Reboot
3) From the grub menu choose the recovery mode (usually the 2nd option).
4) From the new menu you choose "dpkg" and you let it run. This will update the system and fix broken packages (if any).

You then boot back to your desktop and see if that helped.


Hi Madvin..

This looks only way out now. Hope this helps. will let u guys know as soon as i run this. Also i remember i saw an existing bug for apt regarding this kernel update failures. not sure if that is fixed yet.

Wolfman

Wed Oct 03, 2012 6:26:40 am

Hi,

don't forget to click on "Network" before running "dpkg" in recovery mode, and as MV has already said, only with a network cable connected; not Wifi.

Regards Wolfman :D

razedafear

Wed Oct 03, 2012 3:42:38 pm

dpkg errors are fixed now, sudo apt-get install -f also shows no errors. the recovery mode fixed the errors..will try out webmin now. For now this one is SOLVED. will take webmin on a diferent thread if i get stuck. Thanks once again, swaf, wolfman, madvinegr....\m/

razedafear

Thu Oct 04, 2012 3:36:35 am

thanks.. i ran the command "sudo apt-get install y-ppa-manager" and it installed correctly. opened the Yppa manager and searched for this error i got after installing :
here are the last few lines of code after running the above command:

Code:
Setting up y-ppa-manager (0.0.9.1-1~webupd8~precise) ...
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
Processing triggers for menu ...
/usr/share/menu/downverter.menu: 1: /usr/share/menu/downverter.menu: Syntax error: word unexpected (expecting ")")


searched the "downverter" using search in PPA's and got this. should i delete this?, coz it does not have a PPA associated with it. see this

a9.jpeg


Also my laptop fan has just started to be a bit more noisy, the fan speed has notched up a level. Can this be coz of yppa manager or its not related to this.?

Wolfman

Thu Oct 04, 2012 6:09:48 am

Hi,

if you don't have it already, install the "Medibuntu Repo":

viewtopic.php?f=6&t=1852

It should clear the problem.

Regards Wolfman :D

razedafear

Thu Oct 04, 2012 6:43:06 am

Wolfman wrote:Hi,

if you don't have it already, install the "Medibuntu Repo":

viewtopic.php?f=6&t=1852

It should clear the problem.

Regards Wolfman :D


Went fine with all the commands, however when i ran
Code:
sudo apt-get dist-upgrade
at the end it throws this error again.
Code:
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
/usr/share/menu/downverter.menu: 1: /usr/share/menu/downverter.menu: Syntax error: word unexpected (expecting ")")


I am fine with removing this if this does not bother my videos playing capabilities (.flv, .avi, .mkv, .mp4, etc).? I have VLC installed.

madvinegar

Thu Oct 04, 2012 6:54:35 am

Do a reboot and try again to run
Code:
sudo apt-get dist-upgrade

Wolfman

Thu Oct 04, 2012 7:14:08 am

Hi,

did you do the update commands in this order??:

sudo apt-get update

then run:

sudo apt-get dist-upgrade

If you didn't do the first one, your sources list wasn't updated correctly!!.

You can do them both together in a terminal with:

sudo apt-get update && sudo apt-get dist-upgrade

Regards Wolfman :D

razedafear

Thu Oct 04, 2012 7:15:19 am

did them all in the order mentioned.

razedafear

Thu Oct 04, 2012 7:20:21 am

Thanks madvin....rebooted and its SOLVED..:)

madvinegar

Thu Oct 04, 2012 7:33:10 am

Glad I helped.