Results 1 to 8 of 8

Thread: Package x is not available, but is referred to by another package.

  1. #1
    Join Date
    Jul 2012
    Beans
    68

    Package x is not available, but is referred to by another package.

    when I try to install the command pdfsam:
    Code:
    $ sudo apt-get install pdfsam
    I get the following message:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package pdfsam is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'pdfsam' has no installation candidate
    It doesn't just do that with this command, but with various. Can anybody tell me what's going on here?

  2. #2
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: Package x is not available, but is referred to by another package.

    Should be there

    http://packages.ubuntu.com/precise/pdfsam

    Got your universal sources open?

  3. #3
    Join Date
    Jul 2012
    Beans
    68

    Re: Package x is not available, but is referred to by another package.

    Thanks. I wasn't specifically looking for that program, it is an example of a bigger problem that occurs every time I use the apt-get install command.

    I have two Ubuntu versions, one from the alternative CD and one from the regular. This problem only occurs on the Ubuntu installed from the regular CD.

    Also, if I look for some programs in the Ubuntu software center of the regular CD version, it doesn't find them, while on the alternative CD version it does.

    I don't know what's going on.

  4. #4
    Join Date
    Mar 2011
    Location
    Pizza Hut
    Beans
    1,206
    Distro
    Kubuntu 13.10 Saucy Salamander

    Re: Package x is not available, but is referred to by another package.

    What's the output of
    Code:
    cat /etc/apt/sources.list
    Ubuntu user #35115 - Linux user #555707 - My Ubuntu Wik page
    Join the Ubuntu Forums' IRC room (#ubuntuforums on irc.freenode.net)!

  5. #5
    Join Date
    Jul 2012
    Beans
    68

    Re: Package x is not available, but is referred to by another package.

    The following:

    Code:
    # deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://nl.archive.ubuntu.com/ubuntu/ precise main restricted
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates main restricted
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://nl.archive.ubuntu.com/ubuntu/ precise universe
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise universe
    deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates universe
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://nl.archive.ubuntu.com/ubuntu/ precise multiverse
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise multiverse
    deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://nl.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
    deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu precise-security main restricted
    deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
    deb http://security.ubuntu.com/ubuntu precise-security universe
    deb-src http://security.ubuntu.com/ubuntu precise-security universe
    deb http://security.ubuntu.com/ubuntu precise-security multiverse
    deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu precise partner
    # deb-src http://archive.canonical.com/ubuntu precise partner
    
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu precise main
    deb-src http://extras.ubuntu.com/ubuntu precise main

  6. #6
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: Package x is not available, but is referred to by another package.

    Your sources are in order. But for your information you could uncomment

    # deb http://archive.canonical.com/ubuntu precise partner

    This would give you access to some more packages. To edit your sources.list:

    https://help.ubuntu.com/community/Re...y_Software_Tab

    And also all http's that begin with "deb-src" you do not really need unless you plan on building packages from source. It doesn't hurt anything to leave them that way, just for your own info. You can comment all deb-src packages by unchecking the box (source code) in software sources.

    https://help.ubuntu.com/community/Re...u_Software_Tab

    Now back to the original problem. Like I said, your sources list is in order. Maybe you just need an update, so try this in terminal:

    sudo apt-get update

    sudo apt-get install pdfsam

  7. #7
    Join Date
    Jul 2012
    Beans
    68

    Re: Package x is not available, but is referred to by another package.

    Already tried that, didn't work. sudo apt-get update gives a wall of text, the last few lines being:
    Code:
    W: Failed to fetch gzip:/var/lib/apt/lists/partial/nl.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages  Hash Sum mismatch
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    I'll look into the other things you said. It's weird that this problem only appears to be happening on Ubuntu with the regular cd, not with the alternative installation cd.

  8. #8
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: Package x is not available, but is referred to by another package.

    Hash Sum mismatch

    I wonder, a corrupted file

    Change your download server see if that would clear it

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
  •