LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-10-2014, 09:49 AM   #1
jmpz
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
aptitude doesn't show versions of installed packages


Instead, it shows <none> for all the packages listed in Aptitude. And I can't upgrade or install any packages via apt-get either.

Is there anyone can help me out of this? Thanks a lot!
 
Old 02-10-2014, 02:33 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Without knowing what command you're using it's very hard to offer any help. The command
Code:
aptitude show <package-name>
will give you the version number for any package of your release and indicate whether said package is installed or not. Here's an example.
Code:
~$ aptitude show iceweasel
Package: iceweasel                       
State: installed
Automatically installed: yes
Version: 24.2.0esr-1
Priority: optional
Section: web
Maintainer: Maintainers of Mozilla-related packages <pkg-mozilla-maintainers@lists.alioth.debian.org>
Architecture: amd64
Uncompressed Size: 7,239 k
Depends: libc6 (>= 2.17), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.16.0), libgtk2.0-0 (>=
         2.10), libnspr4 (>= 2:4.9-2~) | libnspr4-0d (>= 1.8.0.10), libstdc++6 (>= 4.1.1),
         fontconfig, procps, debianutils (>= 1.16), xulrunner-24.0 (= 24.2.0esr-1), libsqlite3-0 (>=
         3.7.12-1~)
Suggests: fonts-stix | otf-stix, fonts-oflb-asana-math, fonts-mathjax, mozplugger, libgssapi-krb5-2
          | libkrb53
Conflicts: iceweasel
Breaks: xul-ext-torbutton, xul-ext-torbutton
Provides: gnome-www-browser, www-browser
Description: Web browser based on Firefox
 Iceweasel is Firefox, rebranded. It is a powerful, extensible web browser with support for modern
 web application technologies.
The highlighted text indicates the information you're interested in.
jdk

Last edited by jdkaye; 02-10-2014 at 02:34 PM.
 
Old 02-10-2014, 09:00 PM   #3
jmpz
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: Disabled
Not for the installed packages. Aptitude has information for installed packages. But it doesn't show version number for new packages.

The command I used is just `aptitude', i.e. the CLI interface. In another debian machine, `aptitude' at least shows version number in the repository for new packages. But mine doesn't show these information, instead it only shows <none>
 
Old 02-11-2014, 01:08 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by jmpz View Post
Not for the installed packages. Aptitude has information for installed packages. But it doesn't show version number for new packages.

The command I used is just `aptitude', i.e. the CLI interface. In another debian machine, `aptitude' at least shows version number in the repository for new packages. But mine doesn't show these information, instead it only shows <none>

I really don't understand what you're talking about. It does show version number for uninstalled packages as you can clearly see here:
Code:
~$ aptitude show xbmc
Package: xbmc                            
New: yes
State: not installed
Version: 2:12.3+dfsg2-4
Priority: optional
Section: video
Maintainer: Debian XBMC Packaging Team <pkg-xbmc-maintainers@lists.alioth.debian.org>
Architecture: all
Uncompressed Size: 39.6 M
Depends: xbmc-bin (>= 2:12.3+dfsg2-4), xbmc-bin (< 2:12.3+dfsg2-4.1~), mesa-utils, x11-utils,
         fonts-dejavu-core | ttf-dejavu-core, fonts-roboto, libjs-jquery, python-imaging, python,
         python-support (>= 0.90.0)
Breaks: xbmc-data (< 2:11.0~git20111222.22ad8e4), xbmc-data (< 2:11.0~git20111222.22ad8e4),
        xbmc-skin-confluence (< 2:11.0~git20111222.22ad8e4), xbmc-skin-confluence (<
        2:11.0~git20111222.22ad8e4), xbmc-standalone (< 2:11.0~git20111222.22ad8e4), xbmc-standalone
        (< 2:11.0~git20111222.22ad8e4)
Replaces: xbmc-data, xbmc-data, xbmc-live, xbmc-live, xbmc-skin-confluence, xbmc-skin-confluence,
          xbmc-standalone, xbmc-standalone
Provides: xbmc-data, xbmc-live, xbmc-skin-confluence, xbmc-standalone
Description: XBMC Media Center (arch-independent data package)
 XBMC, recursive acronym for "XBMC Media Center", is an award winning free and open source software
 media-player and entertainment hub for all your digital media. XBMC is available for Linux, Mac OS
 X (Leopard, Tiger and Apple TV) and Microsoft Windows, as well as the original Xbox game console.
 Created in 2003 by a group of like minded programmers, XBMC is a non-profit project run and
 developed by volunteers located around the world. More than 50 software developers have contributed
 to XBMC, and 100-plus translators have worked to expand its reach, making it available in more than
 30 languages. 
 
 While XBMC functions very well as a standard media player application for your computer, it has
 been designed to be the perfect companion for your HTPC. Supporting an almost endless range of
 remote controls, and combined with its beautiful interface and powerful skinning engine, XBMC feels
 very natural to use from the couch and is the ideal solution for your home theater. Once installed,
 your computer will become a fully functional multimedia jukebox.
aptitude shows version numbers for new packages after you have executed this command:
Code:
sudo aptitude update
jdk
 
Old 02-11-2014, 08:27 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

perhaps the command you are looking for is "apt-cache policy". Eg
Code:
% apt-cache policy xbmc
xbmc:
  Installed: 2:11.0~git20120510.82388d5-1
  Candidate: 2:11.0~git20120510.82388d5-1
  Version table:
     2:12.3+dfsg1-3~bpo70+2 0
        100 http://ftp.jp.debian.org/debian/ wheezy-backports/main amd64 Packages
 *** 2:11.0~git20120510.82388d5-1 0
        500 http://ftp.jp.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status
HTH,

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] show a list of all installed packages cccc Debian 1 02-02-2012 11:17 AM
Multiple versions of packages installed bakwas_internet Fedora 7 06-01-2007 01:04 PM
how do I get smart to show older versions of packages emg SUSE / openSUSE 1 08-11-2006 06:30 AM
Apt Show Installed Packages moo-cow Linux - General 1 07-06-2006 02:48 PM
[aptitude] How to get a list of all installed packages? coralsaw Debian 5 06-30-2006 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration