After upgrading to 10.04 on my laptop I found that the battery monitor bar was returning an empty bar with no data. Inspection of errors returned by running it in the terminal showed that conky was trying to identify the battery by the wrong portion of the script, specifically:
${battery_bar 7,65 BAT0}
Where it should have been attempting to lookup 'BAT0', it was actually looking up '7,65'. After double checking that the script had been written correctly, I attempted a reinstall from the repositories, to no avail! The solution ended up being just to download the source, compile and install.
Conky source can be found
here, download the tarball of the latest version.
To install:
Ensure dependencies have been met:
sudo apt-get install lua5.1 liblua5.1-0-dev libxml2-dev build-essential libcurl4-gnutls-dev libx11-dev libxt-dev libxext6-dbg libxext-dev libxdamage-dev libxft-dev libimlib2-dev libglib2.0-dev
Find the Conky tarball you have downloaded and extract the contents to a convenient location, then navigate to this folder in the terminal.
Then, while in this directory, in the terminal:
./configure
make
sudo make install
And you're done! For convenience you could use a program called checkinstall to autobuild a deb, so that it is easier to remove or upgrade conky at a later date.
To do this simply replace 'sudo make install' with 'sudo checkinstall'. Follow the steps and enjoy Conky!