Author Topic: Re: problem using pkgutils :solved  (Read 2809 times)

Online Rudge

  • Hero Member
  • *****
  • Posts: 9679
  • I'm Just A Dog.
Re: problem using pkgutils :solved
« on: October 25, 2009, 12:44:16 AM »
"mkrepo -a -d PCLinuxOS -v PCLinuxOS -s pclos -p <your PCLOS user name>"

This script just asks me to (Continue or Not) with a "Y" or a "n" and does nothing except ask me again no matter what I give it.
« Last Edit: October 27, 2009, 08:23:17 PM by rudge12000 »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils
« Reply #1 on: October 25, 2009, 01:34:52 AM »
You have to upgrade to kde4 and install pkgutils-kde4  ..or follow the instruction I posted for fixing mkrepo, addpkg, etc on kde3:

http://www.pclinuxos.com/forum/index.php/topic,62579.msg507113.html#msg507113
« Last Edit: October 25, 2009, 01:37:07 AM by travisn000 »

Online Rudge

  • Hero Member
  • *****
  • Posts: 9679
  • I'm Just A Dog.
Re: problem using pkgutils
« Reply #2 on: October 25, 2009, 01:59:49 AM »
You have to upgrade to kde4 and install pkgutils-kde4  ..or follow the instruction I posted for fixing mkrepo, addpkg, etc on kde3:

http://www.pclinuxos.com/forum/index.php/topic,62579.msg507113.html#msg507113



I have a minime install and have successfully upgraded to KDE4,  Installed pkgutils-kde4 
I have not done the  "instruction I posted for fixing mkrepo, addpkg, etc on kde3:"

 I have a fully functional minime KDE4 box that I intend to use  and did not see the need to do this part.
Should I still consider doing it?


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils
« Reply #3 on: October 25, 2009, 09:40:36 AM »
You should not have to..  if you are fully updated, try a different repo and update again.

If you still are not getting the fix, install using the following command:

Code: [Select]
apt-get install http://74.92.170.25/packaging/RPMS/pkgutils-kde4-0.1.3-1pclos2010.noarch.rpm

Online Rudge

  • Hero Member
  • *****
  • Posts: 9679
  • I'm Just A Dog.
Re: problem using pkgutils
« Reply #4 on: October 25, 2009, 01:35:34 PM »
Thanks Travis. It's working.

 apt-get install http://74.92.170.25/packaging/RPMS/pkgutils-kde4-0.1.3-1pclos2010.noarch.rpm

This did the trick.
« Last Edit: October 27, 2009, 08:22:56 PM by rudge12000 »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: problem using pkgutils :solved
« Reply #5 on: April 01, 2010, 05:26:57 PM »
Having this problem now,

Phoenix 2010 Beta 2,

have installed pkgutil-kde4 and pkgutil-thunar

Script won't continue, pressing Y, y, n, N, no, yes, Yes, yEs, yeS, YES..... :-)

Code in mkrepo is:

Code: [Select]
yorn () {
local s
while ! [[ "\$s" =~ "[ynYN]" ]]; do
read -p"\$2" s
s=\${s:-\$1}
[ \${#s} -gt 1 ] && s=
done
echo -n \$s|tr yn YN
}

will dissect it tomorrow ....

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #6 on: April 01, 2010, 05:55:25 PM »
You need to remove the quotation marks:
Code: [Select]
while ! [[ "\$s" =~ "[ynYN]" ]]; doShould be:
Code: [Select]
while ! [[ \$s =~ [ynYN] ]]; do

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12504
Re: problem using pkgutils :solved
« Reply #7 on: April 01, 2010, 06:18:39 PM »
You need to remove the quotation marks:
Code: [Select]
while ! [[ "\$s" =~ "[ynYN]" ]]; doShould be:
Code: [Select]
while ! [[ \$s =~ [ynYN] ]]; do


Can you please send an updated package if you fix it.

Thanks to everyone who donates. You keep the servers running.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #8 on: April 01, 2010, 07:15:32 PM »
You need to remove the quotation marks:
Code: [Select]
while ! [[ "\$s" =~ "[ynYN]" ]]; doShould be:
Code: [Select]
while ! [[ \$s =~ [ynYN] ]]; do


Can you please send an updated package if you fix it.

Sending updated pkg.....

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: problem using pkgutils :solved
« Reply #9 on: April 03, 2010, 06:18:38 AM »
Thanks :-) That fixed it,

still some issues, now I get to a screen that says:

Code: [Select]
%vendor PClinuxOS

Build packages will be downloaded and installed

Continue? [Y/n]
Please enter root Password:

PCLinuxOS official repositories:
  \141) http://ftp.heanet.ie
  \142) ftp://ftp.belnet.be
  \143) http://cesium.di.uminho.pt
  \144) ftp://ftp.ch.debian.org
  \145) http://ftp.sh.cvut.cz
  \146) http://ftp.nl.freebsd.org
  \147) ftp://ftp.pbone.net
  \150) ftp://rm.mirror.garr.it
  \151) http://mirrors.lastdot.org:1280
  \152) http://pclosusers.com
  \153) http://ftp.leg.uct.ac.za
  \154) http://mirror.pacific.net.au
  \155) ftp://mirror.internode.on.net
Choose a repo to make active [a-\155]

and I've tried 'a' and \141 but can't get past this.

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition



Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: problem using pkgutils :solved
« Reply #11 on: April 03, 2010, 06:56:47 AM »
Thanks Slax,

the link is related to the problem, but does not solve it here.

I am using a non-US keyboard, danish, trying to descipher the code...


/usr/bin/mkrepo
Code: [Select]
--snip-snip-snip-
repos=( \\
http://ftp.heanet.ie/pub/pclinuxos/apt/ \\
ftp://ftp.belnet.be/pub/mirror/pclinuxonline.com/apt/ \\
http://cesium.di.uminho.pt/pub/pclinuxos/apt/pclinuxos/2007/ \\
ftp://ftp.ch.debian.org/mirror/pclinuxos/apt/ \\
http://ftp.sh.cvut.cz/MIRRORS/pclinuxos/apt/ \\
http://ftp.nl.freebsd.org/os/Linux/distr/texstar/pclinuxos/apt/ \\
ftp://ftp.pbone.net/pub/pclinuxos/apt/ \\
ftp://rm.mirror.garr.it/mirrors/pclinuxos/apt/ \\
http://mirrors.lastdot.org:1280/pclos/apt/ \\
http://pclosusers.com/pclosusers/pclosfiles/ \\
http://ftp.leg.uct.ac.za/pub/linux/pclinuxos/apt/ \\
http://mirror.pacific.net.au/pub1/linux/texstar/pclinuxos/apt/ \\
ftp://mirror.internode.on.net/pub/pclinuxos/apt/ \\
)

a=96 ; echo
echo "PCLinuxOS official repositories: "
for r in \${repos[@]}
do (( a++ )) ; echo -e "  \$(printf '\\\\%o' \$a)) \$(echo "\$r"|cut -d/ -f1-3)"
done
a=\$(echo -e \$(printf '\\\\%o' \$a))
while [[ "\$n" < "a" || "\$n" > "\$a" ]]
do read -p "Choose a repo to make active [a-\$a] " n
done
n=\${n:0:1} ; n=\$(echo -n "\$n"|od -An -tuC) ; (( n-=97 ))
active_repo="\${repos[\$n]}"
echo -e "\\n  Activating \$(echo "\${repos[\$n]}"|cut -d/ -f1-3)"
echo -e "  Creating \$aptsl\\n"

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: problem using pkgutils :solved
« Reply #12 on: April 03, 2010, 08:23:17 AM »
Fixing mkrepo, line 273 with this (replaced echo with printf statement) - will print correct letters:

Code: [Select]
a=96 ; echo
echo "PCLinuxOS official repositories: "
for r in \${repos[@]}
do (( a++ )) ; printf \\\\"\$(printf '%o' \$a)) \$(echo "\$r\n")"
done
a=\$(printf \\\\"\$(printf '%o' \$a)")

However - this line does not look right to me (line 251 in mkrepo):

dsx="pclinuxos/2007 main extra nonfree kde gnome"


should/can 2007 just be replaced by 2010 everywhere?

edit: 2007 is written several places
« Last Edit: April 03, 2010, 08:25:49 AM by MBantz »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #13 on: April 03, 2010, 08:29:18 AM »
I'll have a go at fixing mkrepo.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: problem using pkgutils :solved
« Reply #14 on: April 03, 2010, 08:40:47 AM »
Thanks a bunch Neal :-)

Let me know if you need anything packaged :-)