Ubuntu: apt-get says Version was not found but it is there



Question:

I've added this repository "ppa:videolan/stable-daily" using this command:

sudo apt-add-repository ppa:videolan/stable-daily  

thin I wrote this command:

sudo apt-get update && sudo apt-get install vlc=2.1.2+git20140320+r54512+18+11~ubuntu14.04.1  

Finally i got this massage:

E: Version '2.1.2+git20140320+r54512+18+11~ubuntu14.04.1' for 'vlc' was not found  

even though I can see it in the repository page. I have Ubuntu 13.10. Is this because of the "ubuntu14.04.1" in the end of the version name, if yes how can I work around it ?


Solution:1

If you want the Latest from this repositoty

https://launchpad.net/~djcj/+archive/vlc-stable

sudo add-apt-repository ppa:djcj/vlc-stable  sudo apt-get update  sudo apt-get install vlc  


Solution:2

No, the version is not there. You are on 13.10 and have added the repository for 13.10, not 14.04. Replace the 14.04.1 in the version string with 13.10.1 to install the package, assuming the recipe is built for 13.10 as well as 14.04.


Solution:3

First try to see all the available vlc versions on your repositories and PPA's by running the below command,

apt-cache policy vlc  

The output of the above command for mine would be like this,

avinash@avinash-Lenovo-IdeaPad-Z500:~$ apt-cache policy vlc:    Installed: 2.0.8+git20140211+r49186+13+8~ubuntu13.10.1    Candidate: 2.1.2-1~ppa1    Version table:       2.1.2-1~ppa1 0          500 http://ppa.launchpad.net/jacob/media/ubuntu/ saucy/main amd64 Packages       2.0.8+git20140305+r49188+13+8~ubuntu13.10.1 0          500 http://ppa.launchpad.net/videolan/stable-daily/ubuntu/ saucy/main amd64 Packages   *** 2.0.8+git20140211+r49186+13+8~ubuntu13.10.1 0          100 /var/lib/dpkg/status       2.0.8-1 0          500 http://ubuntu.inode.at/ubuntu/ saucy/universe amd64 Packages  

The latest version available for vlc on mine is 2.1.2-1~ppa1 which was provided by @jacob's PPA.So i have to run the below command on my terminal to install the latest version of vlc.

sudo apt-get install vlc=2.1.2-1~ppa1  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »