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

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3734
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Where is apt-sources-update ? (Re Open)
« Reply #45 on: August 02, 2011, 03:50:53 PM »
Quote
I don't remember if apt-sources-update told me "do you want to overwrite the old sources.list" and "I will keep a backup of the old one... "

Have you kept theses 2 messages ?

Yeah this passus will i fix at next, i don't know, why it will not longer work, but i think, this is very simple to solve  ::)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Where is apt-sources-update ? (Re Open)
« Reply #46 on: August 02, 2011, 05:16:30 PM »
Hi,

Another little problem that might need a fix. You should check what I say though, to be sure I don't mistake. I get this while updating the system with new packages:
Quote
Lors de l'installation du paquet mylivecd-0.9.4-9pclos2011 :

/var/lib/rpm/filetriggers/ldconfig.script: line 2: ldconfig : commande introuvable

I had got rid of it when launching synaptic with the "gksu -l synaptic" command line as advised by siamer on one of the mailing lists.

In apt-sources-update I read:
Code: [Select]
# grep synaptic apt-sources-update
WINDOW_ICON="/usr/share/pixmaps/synaptic.png"
    synaptic &
for idx in synaptic smart ksmarttray kpackage apt-get
# -r => launch synaptic with repository selection dialog open
#( synaptic -r &>/dev/null )&
synaptic -r
#

well, I don't know how that reads, but could you manage something so that the "gksu -l synaptic" gets an equivalent here, and we don't get a "ldconfig : command not found" message when Synaptic is started from apt-sources-update ?

Thanks. :)


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

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3734
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Where is apt-sources-update ? (Re Open)
« Reply #47 on: August 03, 2011, 05:40:58 AM »
sorry, but apt-sources-update change really nothing on synaptic.desktop. So is nothing to fix on this street...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Where is apt-sources-update ? (Re Open)
« Reply #48 on: August 03, 2011, 06:05:45 AM »
Ok, I was wondering, because I thought I had got rid of this message. My Exec line in desktop file is
"Exec=gksu -l /usr/sbin/synaptic", which is supposed to be right.

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

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Where is apt-sources-update ? (Re Open)
« Reply #49 on: August 03, 2011, 06:07:46 AM »
I think there is some other issue here, Melodie. I'm not sure what, though.   

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Where is apt-sources-update ? (Re Open)
« Reply #50 on: August 03, 2011, 06:18:51 AM »
I think there is some other issue here, Melodie. I'm not sure what, though.  

Same for me. I just installed:
qwit (0.10-1pclos2010)
task-qt4 (4.5.2-1pclos2009)

to see if I get the ldconfig message again and I don't get it. (Same machine where I tested Leiche's last apt-sources-update yesterday).

My machine is also up to date as of yesterday.

Reinstalling mylivecd:

Quote
Lors de la préparation pour l'installation :

mylivecd-0.9.4-9pclos2011

No ldconfig message.

/Edit : I have started apt-sources-update again, and let it write a new sources.list and therefore open Synaptic. While re-installing mylivecd again no message, but while installing a new package:


Quote
Lors de l'installation du paquet agave-0.4.7-1pclos2010 :

/var/lib/rpm/filetriggers/ldconfig.script: line 2: ldconfig : commande introuvable

it triggers the "ldconfig : command not found" message. So I think there might be 2 possibilities, either to start apt-sources-update with "gksu -l" in front of the "Exec=" in the apt-sources-update.desktop file, or to add a "gksu -l" in front of the "synaptic" command launchers in apt-sources-update script.

apt-sources-update script:

line 133 :     synaptic &
line 455 : synaptic -r

What do you think ?
« Last Edit: August 03, 2011, 06:50:11 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Where is apt-sources-update ? (Re Open)
« Reply #51 on: August 03, 2011, 08:32:04 AM »
That may be the solution. The only way to know is to make the change and test.   

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3734
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Where is apt-sources-update ? (Re Open)
« Reply #52 on: August 03, 2011, 09:56:36 AM »
Quote
apt-sources-update script:

line 133 :     synaptic &



could this

Code: [Select]
if [ ! -e /usr/bin/zenity ]; then
  $DIALOG --yesno $"Zenity is required to run this script.\n\nWould you like to install it now?"
  if [ "$?" == "0" ]; then
    synaptic &
    exit

And will only install Zenity, when you click on OK.

Quote

line 455 : synaptic -r


could this

Code: [Select]
-r => launch synaptic with repository selection dialog open
#( synaptic -r &>/dev/null )&
synaptic -r

and will open synaptic, only to change the repositories, nothing more.

Quote
What do you think ?


I think, apt-sources-update isn't the issues here, but if you think it is. We should move it, what other can't say yet, sorry.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Where is apt-sources-update ? (Re Open)
« Reply #53 on: August 03, 2011, 11:28:18 AM »
Hi Neal, Leiche, I tried what I suggested, but with no success. If I change the desktop file as I suggested, I get a window mumbling that apt-sources-update must not be started as root, and that's it. It seems angry !

if I try changing to what I thought could be a solution in the apt-sources-update script then Synaptic does not start anymore (I don't know anything about scripting in bash so I am not astonished. If I had success I would be happy but most astonished).

Leiche : agreed that this should be tested further. Shall I ask for testers to come help here ? :D

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

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3734
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Where is apt-sources-update ? (Re Open)
« Reply #54 on: August 03, 2011, 11:31:13 AM »
latest build...
see here, http://www.pclinuxos.com/forum/index.php/topic,94406.msg802007.html#msg802007
fix copy function to /etc/apt

Hi Neal, Leiche, I tried what I suggested, but with no success. If I change the desktop file as I suggested, I get a window mumbling that apt-sources-update must not be started as root, and that's it. It seems angry !

if I try changing to what I thought could be a solution in the apt-sources-update script then Synaptic does not start anymore (I don't know anything about scripting in bash so I am not astonished. If I had success I would be happy but most astonished).

Leiche : agreed that this should be tested further. Shall I ask for testers to come help here ? :D




If you using Update-Notifier for make updates?
There found some issues, where i fixed soon...
« Last Edit: August 03, 2011, 12:04:00 PM by Leiche »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Where is apt-sources-update ? (Re Open)
« Reply #55 on: August 03, 2011, 11:35:13 AM »
Code: [Select]
-r => launch synaptic with repository selection dialog open
#( synaptic -r &>/dev/null )&
synaptic -r

will open synaptic, only to change the repositories, nothing more.

I think, apt-sources-update isn't the issues here, but if you think it is. We should move it, what other can't say yet, sorry.

Once Synaptic is opened with this command it is also possible:
to use Synaptic to update;
to use Synaptic to uninstall packages;
to use Synaptic to install new packages.

First I am in a wonder about one point : how come the root password was not prompted there ? Second, if apt-sources-update opens synaptic with just "synaptic" or "synaptic -r" it lacks the "gksu -l " feature which allows starting it as full root :

The new Synaptic we have and thefore : /usr/sbin/synaptic is in the root $PATH and therefore needs full root environment... to avoid the "ldconfig no such command" error message...

This is what I have understood so far.

Quote
If you using Update-Notifier for make updates?
There found some issues, where i fixed soon...

I could try to look, but my systems now are very much up to date... except the ones that I need to publish next, but I don't like to fool too much with them.

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

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3734
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Where is apt-sources-update ? (Re Open)
« Reply #56 on: August 03, 2011, 11:49:17 AM »
Code: [Select]
-r => launch synaptic with repository selection dialog open
#( synaptic -r &>/dev/null )&
synaptic -r

will open synaptic, only to change the repositories, nothing more.

I think, apt-sources-update isn't the issues here, but if you think it is. We should move it, what other can't say yet, sorry.

Once Synaptic is opened with this command it is also possible:
to use Synaptic to update;
to use Synaptic to uninstall packages;
to use Synaptic to install new packages.

First I am in a wonder about one point : how come the root password was not prompted there ? Second, if apt-sources-update opens synaptic with just "synaptic" or "synaptic -r" it lacks the "gksu -l " feature which allows starting it as full root :

The new Synaptic we have and thefore : /usr/sbin/synaptic is in the root $PATH and therefore needs full root environment... to avoid the "ldconfig no such command" error message...

This is what I have understood so far.



ahhh, i understand, you use apt-sources-update for oping synaptic, my mistake, sorry, i use synaptic from startmenu or panel, or update-notifier, but not apt-sources-update... so i will fix with issues for gksu -l and kdesu -c or not? I'm now really confused  ::)

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3734
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Where is apt-sources-update ? (Re Open)
« Reply #57 on: August 03, 2011, 12:03:09 PM »
hope now, all is fixed

http://dl.dropbox.com/u/2077694/apt-sources-update-0.3.1-6leiche2011.i586.rpm

fix root question about gksu

Now i will read only good news... ;D

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Where is apt-sources-update ? (Re Open)
« Reply #58 on: August 03, 2011, 12:05:52 PM »
ahhh, i understand, you use apt-sources-update for oping synaptic, my mistake, sorry, i use synaptic from startmenu or panel, or update-notifier, but not apt-sources-update... so i will fix with issues for gksu -l and kdesu -c or not? I'm now really confused  ::)


Hi,

Neal said somewhere else that kdesu does not need any option...

As for using Synaptic, well once it's opened, who is the user who cares where it has been opened from ? It can be from shortcuts, from apt-sources-update, from menus, from console, it should always work the right way...

hope now, all is fixed

http://dl.dropbox.com/u/2077694/apt-sources-update-0.3.1-6leiche2011.i586.rpm

fix root question about gksu

Now i will read only good news... ;D


Hopefully ! I didn't have time to try the version just before ! :D

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: Where is apt-sources-update ? (Re Open)
« Reply #59 on: August 03, 2011, 12:10:16 PM »
Hi,

As I said in the preceeding post, it does not start Synaptic anymore once "gksu -l synaptic" replaces "synaptic" in that script. So the new version does not start Synaptic. Is that what you wanted ?
Code: [Select]
$ ls repo-speed-test/
backup-n-overwrite-sources.sh*  sources.list
repo_goodlist.txt               sources.list.new

I have it in my home user, and that's it. No prompt for root password to use backup-n-overwrite-sources.sh, no Synaptic launched.

What if we required an alias for synaptic to gksu -l synaptic, in the alias.sh file in the system ? Wouldn't that make it all more simple ?


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