Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to load an SSH key to Github from a new machine and this command is not working:

sudo apt-get install xclip

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package xclip 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 xclip has no installation candidate

when I try:

sudo aptitude install xclip

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
No candidate version found for xclip
No candidate version found for xclip
The following partially installed packages will be configured:
  synaptics-dkms 
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up synaptics-dkms (1.1.1) ...
Loading new synaptics-1.1.1 DKMS files...

Error! Cannot locate /usr/src/synaptics-1.1.1.dkms.tar.gz.
File does not exist.
dpkg: error processing synaptics-dkms (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 synaptics-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up synaptics-dkms (1.1.1) ...
Loading new synaptics-1.1.1 DKMS files...

Error! Cannot locate /usr/src/synaptics-1.1.1.dkms.tar.gz.
File does not exist.
dpkg: error processing synaptics-dkms (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 synaptics-dkms
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done

Any idea how I can install this?

Mucho thanks in advance

share|improve this question

migrated from stackoverflow.com Jan 16 '11 at 4:29

This question came from our site for professional and enthusiast programmers.

1 Answer 1

It seems like dpkg is allready running, try dpkg --configure -a (I didn't know to xclip before just now, it seems nice, but you can also just use ctrl+shift+c / ctrl+shift+v to copy/paste in the terminal...)

share|improve this answer
    
I had a similar problem on ubuntu 10.10 a few months ago, and that fixed it. Any chance you happened to abort a previous installation? –  Gunnar Knudsen Jan 15 '11 at 21:55
    
Cheers- I figured out that I needed to uninstall synaptics-dkms so I did this: sudo dpkg -r synaptics-dkms –  wildster Jan 15 '11 at 22:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.