PDA

View Full Version : [SOLVED] Upgraded app still uses old version



GrouchyGaijin
May 29th, 2011, 10:09 PM
Hi Everyone,

I installed gpodder 2.14 a while back. Today I noticed on the website that 2.15 for Natty has been released. So I added the ppa and then 2.15 appeared in synaptic as well.

I clicked upgrade and now synaptic lists the new version as installed.

The problem is that when I run gpodder it runs the old version (2.14).

I've tried reinstalling gpodder. Completely removing gopdder and then reinstalling it. That didn't seem to really be a complete removal though because when I reinstalled my podcast list was intact. I thought a complete removal would delete the config file and thus my podcast list. I've logged out and even restarted the machine between installs.

Even though synaptic lists 2.15 installed I get this in the terminal:



john@john-11:~$ sudo apt-get install gpodder
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gpodder is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
john@john-11:~$ gpodder --version
gpodder 2.14
john@john-11:~$


Does anyone have any ideas of how I can get the actual newest version to run? I'm using Ubuntu version 11.04.

wolfen69
May 29th, 2011, 10:12 PM
Did you completely remove the old version before getting the new one?

GrouchyGaijin
May 29th, 2011, 10:18 PM
Did you completely remove the old version before getting the new one?


I clicked upgrade and now synaptic lists the new version as installed. I assumed that clicking the upgrade option in synaptic would be enough.

wildmanne39
May 29th, 2011, 11:20 PM
I assumed that clicking the upgrade option in synaptic would be enough.Hi, remove the old one first use the remove completely in synaptic, unless there is configuration files from the old one you want saved, but that could cause problems doing it that way.

GrouchyGaijin
May 30th, 2011, 02:04 AM
Hi, remove the old one first use the remove completely in synaptic, unless there is configuration files from the old one you want saved, but that could cause problems doing it that way.

I've tried that twice. Each time, I checked that the program was gone by trying to launch it from the terminal. Each time I got the message that gpodder isn't installed.

But when I reinstall it via synaptic i'm back at version 2.14

webofunni
May 30th, 2011, 02:09 AM
Did you update apt cache after adding the repo ?



apt-cache show gpodder | grep "Version:"


?

dcsoldschool53
May 30th, 2011, 03:38 AM
Remove the old version of gpodder from your system. Don't try to reinstall it from Synaptic Manager, because it will give you the same 2.14 version.
Basically, when you tried to upgrade before, you didn't upgrade your source.list file or add the signing key. This is why you kept getting the same old version. In the terminal, type
sudo add-apt-repository ppa:thp/gpodderfor 11.o4 natty and
sudo apt-get updateOpen the program for your source.list and add
deb http://ppa.launchpad.net/thp/gpodder/ubuntu natty main

GrouchyGaijin
May 30th, 2011, 05:14 AM
Did you update apt cache after adding the repo ?



apt-cache show gpodder | grep "Version:"


?

Thank you for the reply.
It seems I have both installed:



john@john-11:~$ apt-cache show gpodder | grep "Version:"
Version: 2.14-1
Python-Version: 2.6, 2.7
Version: 2.15-1~natty0
Python-Version: 2.6, 2.7


How can I remove the 2.14-1 version?

wildmanne39
May 30th, 2011, 06:00 AM
Thank you for the reply.
It seems I have both installed:



john@john-11:~$ apt-cache show gpodder | grep "Version:"
Version: 2.14-1
Python-Version: 2.6, 2.7
Version: 2.15-1~natty0
Python-Version: 2.6, 2.7


How can I remove the 2.14-1 version?
Hi, as long as you now the name you can use this command in terminal

sudo apt-get --purge remove packagename

dcsoldschool53
May 30th, 2011, 06:06 AM
Thank you for the reply.
It seems I have both installed:



john@john-11:~$ apt-cache show gpodder | grep "Version:"
Version: 2.14-1
Python-Version: 2.6, 2.7
Version: 2.15-1~natty0
Python-Version: 2.6, 2.7
How can I remove the 2.14-1 version?

I just tried the same commad, and here is what I got
apt-cache show gpodder | grep "Version:"
Version: 2.15-1~lucid0
Python-Version: 2.6
Version: 2.2-1
Python-Version: 2.6
I am guessing that you never removed the old version at all.

webofunni
May 30th, 2011, 06:09 AM
I dont think it is a problem of repo or apt cache. I tried tit and got the same result. I can see that there is a bug/mistake in the new package that you are installing. I done



wget http://ppa.launchpad.net/thp/gpodder/ubuntu/pool/main/g/gpodder/gpodder_2.15-1~natty0_all.deb
dpkg-deb --extract gpodder_2.15-1~natty0_all.deb tmp
grep -ir __version__ tmp/usr/share/pyshared/gpodder/__init__.py


and this is what I got



grep __version__ tmp/usr/share/pyshared/gpodder/__init__.py
__version__ = '2.14'


Please contact the package maintainer to fix it.

webofunni
May 30th, 2011, 06:11 AM
I just tried the same commad, and here is what I got
apt-cache show gpodder | grep "Version:"
Version: 2.15-1~lucid0
Python-Version: 2.6
Version: 2.2-1
Python-Version: 2.6
I am guessing that you never removed the old version at all.

I wonder how can it is possible to remove one package from cache unless we remove the entire repo.

dcsoldschool53
May 30th, 2011, 06:15 AM
Try this,
sudo apt-get --purge remove gpodderThen type each of these commands separately in the terminal

sudo add-apt-repository ppa:thp/gpodder
sudo apt-get update
sudo apt-get install gpodder
to install the updated version.

dcsoldschool53
May 30th, 2011, 06:16 AM
I wonder how can it is possible to remove one package from cache unless we remove the entire repo.

He only had one version, and it was 2.14.

webofunni
May 30th, 2011, 06:29 AM
There will be 2 versions in cache



apt-cache show gpodder | grep -i version
Version: 2.14-1
Python-Version: 2.6, 2.7
Version: 2.15-1~natty0
Python-Version: 2.6, 2.7


the command apt-get putge, as far as I know deletes only the installed package. It will not remove from apt-cache. also I can see that apt installs the correct package.



Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-support ...
Setting up python-feedparser (4.1-14) ...
Setting up python-mygpoclient (1.4-1) ...
Setting up libtidy-0.99-0 (20091223cvs-1) ...
Setting up python-mutagen (1.19-2build1) ...
Setting up python-gpod (0.8.0-2) ...
Setting up python-utidylib (0.2-6) ...
Setting up python-pymtp (0.0.4-2) ...
Processing triggers for python-central ...
Setting up gpodder (2.15-1~natty0) ...
Processing triggers for python-support ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


It is installing



Setting up gpodder (2.15-1~natty0) ...


But the version hard coded in the application is wrong. That is what I can observe.

dcsoldschool53
May 30th, 2011, 06:42 AM
You didn't remove the first version before installing the second version.

sudo apt-get --purge remove gpodderOK I see what you are saying now

dcsoldschool53
May 30th, 2011, 06:47 AM
ok Run the program. What version does it show

webofunni
May 30th, 2011, 06:58 AM
ok Run the program. What version does it show

What


gpodder --version

shows in your system ?

dcsoldschool53
May 30th, 2011, 07:07 AM
What


gpodder --versionshows in your system ?

I don't have the program any more...I removed it.

webofunni
May 30th, 2011, 07:15 AM
It should be showing the hard coded version. Thats what I got. I am not able to see any other reason.

GrouchyGaijin
May 30th, 2011, 08:45 AM
Remove the old version of gpodder from your system. Don't try to reinstall it from Synaptic Manager, because it will give you the same 2.14 version.
Basically, when you tried to upgrade before, you didn't upgrade your source.list file or add the signing key. This is why you kept getting the same old version. In the terminal, type
sudo add-apt-repository ppa:thp/gpodderfor 11.o4 natty and
sudo apt-get updateOpen the program for your source.list and add
deb http://ppa.launchpad.net/thp/gpodder/ubuntu natty main

I removed gpodder via synaptic. Then ran


sudo add-apt-repository ppa:thp/gpodder
I then ran

sudo apt-get update

http://dl.dropbox.com/u/23115609/Screenshot-Software%20Sources-1.png
I checked and the gpodder ppa url was still there from when I added it earlier.

At this point, typing gpodder in the terminal gets a program not installed error. (good)

If I install gpodder again I see that 2.15 is installing, but 2.14 launches.

I just saw webofunni's post that there is a bug in the new package and he got the same result. Boy do I feel better! I'll file a bug report.

Thank you for all the help!