Page 1 of 1

pkg giving error on fossapup64 when trying to uninstall a program, while many programs have already been installed.

Posted: Fri Sep 23, 2022 8:10 am
by user1234

I am currently on fassapup64. I was trying to uninstall few packages using pkg, but came upon this error which said

Code: Select all

ash: -le: argument expected
/usr/sbin/pkg: line 1: wc: Argument list too long

Currently I must have hundreds of programs installed on my computer. Once earlier I had encountered with this error, that time also when I had a lot of programs already installed.

This seems to be happening because pkg is calling a program and passing it a lot of arguments, that many that can't be handled by ash. I searched the internet and came over a solution (though I don't program in shell script, so I couldn't apply it on pkg).

Please check the issue.

Edit: I checked the exact number of programs installed using pkg li | wc -l. It is 516.
Also note that uninstalling programs using PPM doesn't give any issue.


Re: pkg giving error on fossapup64 when trying to uninstall a program, while many programs have already been installed.

Posted: Mon Oct 10, 2022 9:53 am
by mistfire
user1234 wrote: Fri Sep 23, 2022 8:10 am

I am currently on fassapup64. I was trying to uninstall few packages using pkg, but came upon this error which said

Code: Select all

ash: -le: argument expected
/usr/sbin/pkg: line 1: wc: Argument list too long

Currently I must have hundreds of programs installed on my computer. Once earlier I had encountered with this error, that time also when I had a lot of programs already installed.

This seems to be happening because pkg is calling a program and passing it a lot of arguments, that many that can't be handled by ash. I searched the internet and came over a solution (though I don't program in shell script, so I couldn't apply it on pkg).

Please check the issue.

Edit: I checked the exact number of programs installed using pkg li | wc -l. It is 516.
Also note that uninstalling programs using PPM doesn't give any issue.

Try using pkg2, the fork of sc0ttman's pkg
http://forum.puppylinux.com/viewtopic.p ... 176ed309f6


Re: pkg giving error on fossapup64 when trying to uninstall a program, while many programs have already been installed.

Posted: Mon Oct 10, 2022 9:57 am
by user1234
mistfire wrote: Mon Oct 10, 2022 9:53 am
user1234 wrote: Fri Sep 23, 2022 8:10 am

I am currently on fassapup64. I was trying to uninstall few packages using pkg, but came upon this error which said

Code: Select all

ash: -le: argument expected
/usr/sbin/pkg: line 1: wc: Argument list too long

Currently I must have hundreds of programs installed on my computer. Once earlier I had encountered with this error, that time also when I had a lot of programs already installed.

This seems to be happening because pkg is calling a program and passing it a lot of arguments, that many that can't be handled by ash. I searched the internet and came over a solution (though I don't program in shell script, so I couldn't apply it on pkg).

Please check the issue.

Edit: I checked the exact number of programs installed using pkg li | wc -l. It is 516.
Also note that uninstalling programs using PPM doesn't give any issue.

Try using pkg2, the fork of sc0ttman's pkg
http://forum.puppylinux.com/viewtopic.p ... 176ed309f6

Can you please provide a link for it? And also wanted to confirm if using it would be safe with fossapup64?


Re: pkg giving error on fossapup64 when trying to uninstall a program, while many programs have already been installed.

Posted: Mon Oct 10, 2022 1:54 pm
by mistfire
user1234 wrote: Mon Oct 10, 2022 9:57 am
mistfire wrote: Mon Oct 10, 2022 9:53 am
user1234 wrote: Fri Sep 23, 2022 8:10 am

I am currently on fassapup64. I was trying to uninstall few packages using pkg, but came upon this error which said

Code: Select all

ash: -le: argument expected
/usr/sbin/pkg: line 1: wc: Argument list too long

Currently I must have hundreds of programs installed on my computer. Once earlier I had encountered with this error, that time also when I had a lot of programs already installed.

This seems to be happening because pkg is calling a program and passing it a lot of arguments, that many that can't be handled by ash. I searched the internet and came over a solution (though I don't program in shell script, so I couldn't apply it on pkg).

Please check the issue.

Edit: I checked the exact number of programs installed using pkg li | wc -l. It is 516.
Also note that uninstalling programs using PPM doesn't give any issue.

Try using pkg2, the fork of sc0ttman's pkg
http://forum.puppylinux.com/viewtopic.p ... 176ed309f6

Can you please provide a link for it? And also wanted to confirm if using it would be safe with fossapup64?

Link here, that supposed to be safe because pkg2 works the same as pkg
http://forum.puppylinux.com/viewtopic.p ... 176ed309f6