Results 1 to 6 of 6

Thread: Repeated output with apt-cache show

  1. #1
    Join Date
    Dec 2007
    Beans
    12,521

    Repeated output with apt-cache show

    When I run
    apt-cache show nginx
    I get
    Code:
    Package: nginx
    Priority: optional
    Section: universe/web
    Installed-Size: 90
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Original-Maintainer: Kartik Mistry <kartik@debian.org>
    Architecture: all
    Version: 1.4.1-3ubuntu1
    Depends: nginx-full | nginx-light
    Filename: pool/universe/n/nginx/nginx_1.4.1-3ubuntu1_all.deb
    Size: 5854
    MD5sum: ac2892b64e0ceb6b4a02b4371ab9559c
    SHA1: 33eac40815bb96a58b001902b9cc4f7bfb866cd3
    SHA256: 4ecacf3682e7ec4903cb8dcb752c9a3d3fa80811447dfc6a23e803c460bc663e
    Description-en: small, powerful, scalable web/proxy server
     Nginx ("engine X") is a high-performance web and reverse proxy server
     created by Igor Sysoev. It can be used both as a standalone web server
     and as a proxy to reduce the load on back-end HTTP or mail servers.
     .
     This is a dependency package to install either nginx-full (by default) or
      nginx-light.
    Description-md5: 19a4ea43e33eae4a46abf8a78966deb5
    Homepage: http://nginx.net
    Description-md5: 19a4ea43e33eae4a46abf8a78966deb5
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Origin: Ubuntu
    but it's printed twice. The same happens with apt-cache show firefox.

    Other ones work fine: apt-cache show with geany or gedit or medit or google-chrome-stable give the data just once (as expected).

    Does anyone else see the same?

    This is on 13.10.

  2. #2
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Repeated output with apt-cache show

    Just tested with firefox, yes, it outputs twice ..
    Edit1 :
    Code:
    dpkg --print-avail firefox
    has only one output.
    Edit2 : http://lists.debian.org/deity/2001/04/msg00038.html. Old thread but Matt Zimmerman says : "Note that both erlang and erlang-base appear twice (apparently because they exist both in non-US and in the main archive)" so I guess it could be normal
    Last edited by bapoumba; December 23rd, 2013 at 03:42 PM.
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,611
    Distro
    Ubuntu

    Re: Repeated output with apt-cache show

    How many are listed when you run
    apt-cache policy "package" ?
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Repeated output with apt-cache show

    Quote Originally Posted by deadflowr View Post
    How many are listed when you run
    apt-cache policy "package" ?
    The double ones show two and the single ones show one:
    Code:
    [09:57 PM] ~ $ apt-cache policy nginx
    nginx:
      Installed: (none)
      Candidate: 1.4.1-3ubuntu1.1
      Version table:
         1.4.1-3ubuntu1.1 0
            500 http://archive.ubuntu.com/ubuntu/ saucy-updates/universe amd64 Packages
            500 http://archive.ubuntu.com/ubuntu/ saucy-security/universe amd64 Packages
         1.4.1-3ubuntu1 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
    [09:57 PM] ~ $ apt-cache policy firefox
    firefox:
      Installed: (none)
      Candidate: 26.0+build2-0ubuntu0.13.10.2
      Version table:
         26.0+build2-0ubuntu0.13.10.2 0
            500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
            500 http://archive.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
         24.0+build1-0ubuntu1 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
    [09:57 PM] ~ $ apt-cache policy geany
    geany:
      Installed: 1.23.1+dfsg-1
      Candidate: 1.23.1+dfsg-1
      Version table:
     *** 1.23.1+dfsg-1 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
            100 /var/lib/dpkg/status
    [09:57 PM] ~ $ apt-cache policy gedit
    gedit:
      Installed: (none)
      Candidate: 3.8.3-0ubuntu3
      Version table:
         3.8.3-0ubuntu3 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
    Don't quite know what to say but it's nice that it's not just me

  5. #5
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Repeated output with apt-cache show

    Quote Originally Posted by bapoumba View Post
    Just tested with firefox, yes, it outputs twice ..
    Edit1 :
    Code:
    dpkg --print-avail firefox
    has only one output.
    Edit2 : http://lists.debian.org/deity/2001/04/msg00038.html. Old thread but Matt Zimmerman says : "Note that both erlang and erlang-base appear twice (apparently because they exist both in non-US and in the main archive)" so I guess it could be normal
    Yes, in the present case, they're in saucy-updates and in saucy-security.

    I thought I had messed up something because I'm learning a bit about Bash and maybe some command I entered did something weird when I wasn't looking

  6. #6
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Repeated output with apt-cache show

    Quote Originally Posted by vasa1 View Post
    Yes, in the present case, they're in saucy-updates and in saucy-security.

    I thought I had messed up something because I'm learning a bit about Bash and maybe some command I entered did something weird when I wasn't looking
    Eheh, I do not think you have messed up anything, or we have both
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •