The first instructions on Google's 'Command line configuration for APT' page are
Run this command as root:
Update apt-get
That was the workaround. Later on I found the solution. The wget command is piped to apt-key command. So the simple solution is to prepend sudo in front of apt-key command as well, and the whole command will succeed.Run this command as root:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -The problem I faced on Ubuntu is that you can't change user to root by using su - root. All you can do is prepend sudo in front of your commands. The above command calls gpg which makes modifications to files in /etc/apt folder. Even with sudo prepended to the wget command, I was getting the following error
gpg: no writable keyring found: eofI didn't know how to use gpg. So I used a simple workaround. The wget command will modify three files in /etc/apt folder as well as create a new temporary file. So I modified the permissions of those files as well as the directory
gpg: error reading `-': general error
gpg: import from `-' failed: general error
cd /etc/aptAfter changing the permissions you can run
sudo chmod 777 trusted.gpg
sudo chmod 777 secring.gpg
sudo chmod 777 trustdb.gpg
sudo chmod 777 .
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -It will output OK to the shell. Now revert back the permissions on the files and folder
sudo chmod 644 trusted.gpgNext you can follow the instructions from Google's page as well as here. I have put these instructions for the sake of completeness, they are no different from the ones on Google.
sudo chmod 644 trustdb.gpg
sudo chmod 644 secring.gpg
sudo chmod 755 .
Update apt-get
sudo apt-get updateAdd the following rule to /etc/apt/sources.list, or if your distro has the /etc/apt/sources.list.d/ directory, add it to a file called google.list in that directory:
# Google software repositoryThen use apt as usual.
deb http://dl.google.com/linux/deb/ stable non-free
sudo apt-get update
sudo apt-get install picasa
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
kudos....
ReplyDeletebravo.
The 'root' user does exist on Ubuntu as well. The way to change to 'root' is to issue the command
ReplyDeletesudo su - root
How to install Picasa image organizer
ReplyDelete* Read #General Notes
gksudo gedit /etc/apt/sources.list
* Add the following lines at the end of file
# Google Picasa for Linux repository
deb http://dl.google.com/linux/deb/ stable non-free
* Save the edited file
sudo apt-get update
sudo apt-get install picasa
it did for me
also u can follow
http://ubuntuguide.org/wiki/Ubuntu:Jaunty#Google_Picasa_.28Photo_Organiser.29