Author Topic: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)  (Read 6797 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #75 on: August 03, 2011, 03:18:57 PM »
please, remove package with
Code: [Select]
su -c "apt-get remove apt-sources-update"
and

install it with
Code: [Select]
su -c "apt-get install /tmp/apt-sources-update-0.3.1-7leiche2011.i586.rpm"
What is now happens?

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #76 on: August 03, 2011, 03:42:15 PM »
is backup-n-overwrite-sources.sh in repo-speed-test available?



Yes Leiche,

Quote
$ ls
backup-n-overwrite-sources.sh*  sources.list
repo_goodlist.txt               sources.list.new

Quote
-rwxr-xr-x 1 melodie melodie  602 août   3 22:47 backup-n-overwrite-sources.sh*



melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #77 on: August 03, 2011, 03:51:11 PM »
please, remove package with
Code: [Select]
su -c "apt-get remove apt-sources-update"
and

install it with
Code: [Select]
su -c "apt-get install /tmp/apt-sources-update-0.3.1-7leiche2011.i586.rpm"

Ok, done.

Quote
What is now happens?

Unfortunately, now same as just before.

Quote
..............
................

sh: ./backup-n-overwrite-sources.sh: Aucun fichier ou dossier de ce type
apt-sources-update is now finished.


and the sh file is there.

After I uninstalled and reinstalled with the "su -c" option, and use apt-get install the way you said, I removed again the repo-test-speed directory from my home, before starting apt-sources-update from within the console.

That's it.

Sorry that it does not work yet... I stop now, need to join the fairies in my dreams. ;)




melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #78 on: August 03, 2011, 03:56:10 PM »
Sorry, i can't replaced this error here by me, and when it's comes no other testers, we will stand still...

Or we use su -c .....................

Wish you a good night, i will go to bed, too  ;)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #79 on: August 03, 2011, 03:59:09 PM »
Hi Melodie,

I know no one ask me about  :D ;) feel free to ignore my post!

May be you have an alias 'su=su -' ? This would imply to change directory to /root.

AS

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #80 on: August 03, 2011, 04:06:50 PM »
Hi Melodie,

I know no one ask me about  :D ;) feel free to ignore my post!

May be you have an alias 'su=su -' ? This would imply to change directory to /root.

AS

AS, you are welcome to help, any time. :)
I never find help unpleasant...

I don't think I have an alias "su=su -"

Code: [Select]
[melodie@localhost ~]$ su
Password:
[root@localhost melodie]# exit
exit
[melodie@localhost ~]$ su -
Password:
[root@localhost ~]#

If there was such an alias configured in the system, I would not be able to use the command "su -" : is that right ?

Could more people come and test Leiche's script ? That would be nice.
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #81 on: August 03, 2011, 04:14:57 PM »
I don't think I have an alias "su=su -"

Correct, you don't have the 'su -' alias.   BTW, the command alias show all configured alias.
I will try the Leiche's script myself, and will post my results.

AS

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #82 on: August 03, 2011, 05:14:56 PM »
OK, made a couple of test, used this:
Quote
http://dl.dropbox.com/u/2077694/apt-sources-update-0.3.1-7leiche2011.i586.rpm


It's seems to me that is fully working (KDE), after measuring repo's speed, ask a couple of questions and then ask if I want replace the source list, I answered yes, then a dialog asking for root password pop up. The source list appear to have been replaced.

As a second test, I have forced the script to use gksu -l:
Code: [Select]
#root privilegs
if [ -f /usr/lib/kde4/libexec/kdesu ]; then
#   mysu="/usr/lib/kde4/libexec/kdesu -c"
   mysu="/usr/bin/gksu -l"
else
   mysu="/usr/bin/gksu -l"
fi

This has not worked correctly, same failure as Melodie.

instead this next one (gksu without -l option) worked like a charm:
Code: [Select]
#root privilegs
if [ -f /usr/lib/kde4/libexec/kdesu ]; then
#   mysu="/usr/lib/kde4/libexec/kdesu -c"
   mysu="/usr/bin/gksu "
else
   mysu="/usr/bin/gksu "
fi

I think it should be expected because the option -l is described in manual as "Make this a login shell.", it's equivalent of "su -".

AS

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #83 on: August 04, 2011, 02:04:53 AM »
Hi, we would be needing the equivalent of "su -" for the actual Synaptic, which will otherwise produce a "ldconfig : command not found" error message for post-installs.


melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #84 on: August 04, 2011, 03:43:16 AM »
Hi, we would be needing the equivalent of "su -" for the actual Synaptic, which will otherwise produce a "ldconfig : command not found" error message for post-installs.



The ldconfig issue exist because using 'gksu' doesn't set the PATH to include "/sbin", and generally speaking the root's PATHs:

gksu -l include the root's PATH but also change the home and current directory.
gksu (without -l) doesn't include the root's PATH nor it change the home and current directory.
kdesu appear to set the root's PATH, but doesn't reset the current directory

My personal view is that the call to ldconfig should be "/sbin/ldconfig"... but this fix could be difficult to apply.
The most simple workaround in my view is that the apt-sources-update script work in a different place, i.e. /tmp, instead of user's HOME, of course, other workarounds are possible.

AS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #85 on: August 04, 2011, 04:37:33 AM »
I told it to create a new sources list with 5 repos. This was not done.

Quote
[neal@thecoffeeshop ~]$ apt-sources-update

Retrieving updated apt sources.list...


Testing repo sync age and download speeds..


PCLinuxOS official repositories:
(ordered by speed-test results, fastest to slowest)
(average download speed in bytes/seconds for ~500 KB file)


14615       http://distro.ibiblio.org/pclinuxos/pclinuxos/apt/
6584       http://ftp.yz.yamagata-u.ac.jp/pub/linux/pclinuxos/apt/
3156       http://distrib-coffee.ipsl.jussieu.fr/pub/linux/pclinuxos/apt/
2760       http://ftp.klid.dk/ftp/pclinuxos/apt/
1798       http://mirror.cpsc.ucalgary.ca/mirror/pclinuxos/pclinuxos/apt/
1499       http://andrzejl.cyryl.net/
1045       http://pclosusers.com/pclosfiles/
998       http://pclos.camors.org/apt/
971       http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/pclinuxos/apt/
969       http://ftp.sh.cvut.cz/MIRRORS/pclinuxos/apt/
960       http://ftp.nl.freebsd.org/os/Linux/distr/pclinuxos/pclinuxos/apt/
953       http://ftp.heanet.ie/pub/pclinuxos/apt/
946       http://ftp.vim.org/ibiblio/distributions/pclinuxos/pclinuxos/apt/
939       http://ftp.belnet.be/mirror/pclinuxonline.com/apt/
938       http://ftp.vim.org/ibiblio/distributions/pclinuxos/megagames/apt/
869       http://debian.ethz.ch/mirror/pclinuxos/apt/
865       http://ftp.ch.debian.org/mirror/pclinuxos/apt/
864       http://gnustep.ethz.ch/mirror/pclinuxos/apt/
750       http://pclinuxos.fi/pub/
688       http://ftp.jaist.ac.jp/pub/Linux/PCLinuxOS/apt/
614       http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/
595       http://mirrors.xservers.ro/pclinuxos/apt/
569       http://ftp.cc.uoc.gr/mirrors/linux/pclinuxos/apt/
456       http://na.mirror.garr.it/mirrors/pclinuxos/apt/
319       http://ftp.leg.uct.ac.za/pub/linux/pclinuxos/apt/
314       http://ftp-srv2.kddilabs.jp/Linux/packages/pclinuxos/pclinuxos/apt/
281       http://mirror.internode.on.net/pub/pclinuxos/apt/
233       http://kambing.ui.ac.id/pclinuxos/apt/


  Activating http://ftp.yz.yamagata-u.ac.jp/pub/linux/pclinuxos/apt/
  Creating /etc/apt/sources.list



Local repo line(s) found:

# rpm file:/home/neal/src/apt/ pclinuxos/2011 athlon i586 noarch

# rpm file:/home/neal/src/apt/ pclinuxos/2011 athlon i586 noarch

..successfully recovered; you may reactivate using Synaptic



PASS repo line found:

rpm http://xxxxxx;xxxxx@pclinuxfiles.com/pclinuxos/apt/ pclinuxos/2010 main updates nonfree kde4 games


..successfully recovered; you may reactivate using Synaptic

sh: ./backup-n-overwrite-sources.sh: No such file or directory
apt-sources-update is now finished.


[neal@thecoffeeshop ~]$

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #86 on: August 04, 2011, 05:11:22 AM »
I told it to create a new sources list with 5 repos. This was not done.

Quote
[neal@thecoffeeshop ~]$
sh: ./backup-n-overwrite-sources.sh: No such file or directory
[neal@thecoffeeshop ~]$

The above error is the consequence of "gksu -l" changing the current directory from user's home to /root, there the script backup-n-overwrite-sources.sh is not found because it's really in user's home.

Another possible workaround could be to execute the command as:

gksu -l /home/<user>/repo-speed-test/backup-n-overwrite-sources.sh
or
gksu -l `pwd`/backup-n-overwrite-sources.sh
instead of
gksu -l ./backup-n-overwrite-sources.sh

AS

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #87 on: August 04, 2011, 10:01:00 AM »
okay melodie, what is the output from in your account, not root account
Code: [Select]
echo $PATH
Thanks...

Remove now gksu, else kdesu to su -c

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Someone to help test from page 5 ?] Apt-sources-update ? (Re Open)
« Reply #89 on: August 04, 2011, 10:42:29 AM »
okay melodie, what is the output from in your account, not root account
Code: [Select]
echo $PATH
Thanks...


echo $PATH for which user ? Ok, all users, here:
Code: [Select]
[melodie@localhost ~]$ echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/home/melodie/bin
[melodie@localhost ~]$ su
Password:
[root@localhost melodie]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/kde4/libexec:/usr/lib/qt4/bin
[root@localhost melodie]# exit
exit
[melodie@localhost ~]$ su -
Password:
[root@localhost ~]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/kde4/libexec
[root@localhost ~]#

Remove now gksu, else kdesu to su -c


done...
http://dl.dropbox.com/u/2077694/apt-sources-update-0.3.1-8leiche2011.i586.rpm
good luck...


Trying...

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode