Dany-69
2010-08-04, 02:10
Hi guys:)
is a bit that I'm playing with QBW to create buttons on the desktop that will allow me to make some tedious procedures about packages ..
In particular I would like one to remove old dependencies .. one to upgrade the app ... and finally one to purge the old packages
1) To remove old dependencies I added a simple
sudo apt-get -y clean && apt-get -y autoclean && apt-get -y autoremove
Result: The first time asking for the password (and even this is not good because if I enter the command in QBW there is no way to enter the password) ... I enter "root" ... and he replies:
Sorry, user user is not allowed to execute '/usr/bin/apt-get -y clean' as root on Nokia-N900
Even closing and reopening the terminal it does not require me the pass for a certain period of time .. Only the output about the missing permission
2) To upgrade the app a :
sudo apt-get update && apt-get -y upgrade
Result .. :
Sorry, user user is not allowed to execute '/usr/bin/apt-get update' as root on Nokia-N900
3) To purge all the packages I have tried with:
sudo dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
Result
Sorry, user user is not allowed to execute '/ usr / bin / dpkg --list' as root on Nokia-N900.
dpkg: Requested operation requires superuser privilege
On the advice of a friend I tried:
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge | sudo gainroot
to first run the command sudo gainroot.. response ..
~ $ dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge | sudo gainroot
Root shell enabled
dpkg: Requested operation requires superuser privilege
~ $
All controls, performed manually with sudo gainroot and then the rest, work perfectly.
But for QBW i need the commands to work with only 1 input...
Why all these problems with sudo? T_T
I even tried uninstalling and reinstalling rootsh .. but nothing ..
Solutions? :(
EDIT: and there's something even more strange... the sudo command for the "sudo kernel-config ecc ecc" works..
I can change frequences and kernel options without any problem .. o.o ...
is a bit that I'm playing with QBW to create buttons on the desktop that will allow me to make some tedious procedures about packages ..
In particular I would like one to remove old dependencies .. one to upgrade the app ... and finally one to purge the old packages
1) To remove old dependencies I added a simple
sudo apt-get -y clean && apt-get -y autoclean && apt-get -y autoremove
Result: The first time asking for the password (and even this is not good because if I enter the command in QBW there is no way to enter the password) ... I enter "root" ... and he replies:
Sorry, user user is not allowed to execute '/usr/bin/apt-get -y clean' as root on Nokia-N900
Even closing and reopening the terminal it does not require me the pass for a certain period of time .. Only the output about the missing permission
2) To upgrade the app a :
sudo apt-get update && apt-get -y upgrade
Result .. :
Sorry, user user is not allowed to execute '/usr/bin/apt-get update' as root on Nokia-N900
3) To purge all the packages I have tried with:
sudo dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
Result
Sorry, user user is not allowed to execute '/ usr / bin / dpkg --list' as root on Nokia-N900.
dpkg: Requested operation requires superuser privilege
On the advice of a friend I tried:
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge | sudo gainroot
to first run the command sudo gainroot.. response ..
~ $ dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge | sudo gainroot
Root shell enabled
dpkg: Requested operation requires superuser privilege
~ $
All controls, performed manually with sudo gainroot and then the rest, work perfectly.
But for QBW i need the commands to work with only 1 input...
Why all these problems with sudo? T_T
I even tried uninstalling and reinstalling rootsh .. but nothing ..
Solutions? :(
EDIT: and there's something even more strange... the sudo command for the "sudo kernel-config ecc ecc" works..
I can change frequences and kernel options without any problem .. o.o ...