I am unable to install any new software, and any apt-get command returns error code 1. In the Ubuntu Software Center, I get the error "New software can't be installed, because there is a problem with the software currently installed. Do you want to repair this problem now?" And if I click repair, nothing happens. I am afraid that it is related to Codeblocks, which was recently installed. I have restarted numerous times, as other threads related to the same problem suggested, and I have followed many of their commands. It seemed to work for them, but it does nothing for me. Ubuntu 14.04 64-bit.  sudo apt-get -f install returns:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   libbonoboui2-0 libbonoboui2-common libglade2-0 libgnomecanvas2-0   libgnomecanvas2-common libgnomeui-0 libgnomeui-common Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   codeblocks-contrib codeblocks-dev gamin libcodeblocks0 libgamin0   libwxsmithlib-dev Recommended packages:   valgrind The following packages will be REMOVED:   codeblocks-headers The following NEW packages will be installed:   gamin libgamin0 libwxsmithlib-dev The following packages will be upgraded:   codeblocks-contrib codeblocks-dev libcodeblocks0 3 upgraded, 3 newly installed, 1 to remove and 81 not upgraded. 5 not fully installed or removed. Need to get 5,309 kB of archives. After this operation, 1,163 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe codeblocks-dev amd64                               13.12-3 [350 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libcodeblocks0 amd64 13.12-3 [1,807 kB] Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/universe gamin amd64 0.1.10-4.1ubuntu1 [41.1 kB] Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libgamin0 amd64 0.1.10-4.1ubuntu1 [16.4 kB] Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty/universe codeblocks-contrib amd64 13.12-3 [3,018 kB] Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libwxsmithlib-dev amd64 13.12-3 [75.1 kB] Fetched 5,309 kB in 8s (643 kB/s)                                               (Reading database ... 338385 files and directories currently installed.) Preparing to unpack .../codeblocks-dev_13.12-3_amd64.deb ... Unpacking codeblocks-dev (13.12-3) over (13.12-1) ... dpkg: error processing archive /var/cache/apt/archives/codeblocks-dev_13.12-    3_amd64.deb (--unpack):  trying to overwrite '/usr/include/codeblocks/externaldepsdlg.h', which is also in     package codeblocks-headers 13.12-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.
Define $\sigma(m) = \sum$ d : d|n.  Prove that $p^j$$q^i$ cannot be a perfect number for $p, q$ odd, distinct primes.  Attempt at Solution: I have shown that $p^k$ can never be a perfect number, and im trying to use the multiplicative property of $\sigma$ to generalize to $p^j$$q^i$ Writing to NTFS drive in Linux I've got an external USB drive that is formatted with NTFS mounted on ~/tmp.  I can read it just fine, but cannot write to it, even as root (temp is a folder on the USB drive):  [root@Plugbox temp]# touch test touch: cannot touch `test': Permission denied [root@Plugbox temp]#   However, if I do a cat /proc/mounts, it looks like I do have NTFS read/write support:  [root@Plugbox temp]# grep /dev/sdb1 /proc/mounts /dev/sdb1 /root/tmp ntfs rw,relatime,uid=0,gid=100,umask=02,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0 [root@Plugbox temp]#   Finally, if I go to the folder above temp, it looks like I should have plenty of permissions to write to the folder:  [root@Plugbox tmp]# ls -al total 61500764 ... drwxrwxr-x 1 root users           0 Apr 19  2010 temp ... [root@Plugbox tmp]#   What am I missing? Lesser-known integration tricks I am currently studying for the GRE math subject test, which heavily tests calculus. I've reviewed most of the basic calculus techniques (integration by parts, trig substitutions, etc.) I am now looking for a list or reference for some lesser-known tricks or clever substitutions that are useful in integration. For example, I learned of this trick   $$\int_a^b f(x) \, dx = \int_a^b f(a + b -x) \, dx$$  in the question    I am especially interested in tricks that can be used without an excessive amount of computation, as I believe (or hope?) that these will be what  is useful for the GRE. Python argparse: default value or specified value What is the minimum wait before I may re-enter the USA after a 90 day visit on the Visa Waiver Program? I entered the USA on a three month visa waiver program from Australia. I am about to return to  Australia and would like to come back again to the USA. How long do I have to wait until I can re-enter the USA for another 3 months? In Einstein's General Relativity, do the space-time dimensions curve? In Einstein's General Relativity, do the space-time dimensions curve according to the positions of stars, planets, and masses? I have no idea how to find this integral:  $$\int_0^1\frac{(x-x^2)^4}{1+x^2}\ dx\ ?$$  Any help would be appreciated. Thanks in advance. Understand PAM and NSS In the last days I have set up some Linux system with LDAP authentication and everything works fine, but there's still something I can't really understand regarding NSS and PAM, also after a lot of research. Citing:  NSS allows administrators to specify a list of sources where authentication files, host names and other information will be stored and searched for  and  PAM is a set of libraries that provide a configurable authentication platform for applications and the underlying operating system  What I don't understand is how PAM and NSS work and interact together. In  the architecture is explained pretty well: I configure PAM to use pam_ldap for LDAP accounts and pam_unix for local accounts, then I configure nsswitch.conf to fetch information from local files and LDAP. If I have understood correctly LDAP is used twice: first by pam_ldap and then by NSS which is itself called from pam_unix. Is that right? Is LDAP really used twice? But why do I need to configure both NSS and PAM? My explanation is that PAM performs different tasks than NSS and it is used by other programs. But, then, it should be possible to use only NSS or only PAM, as I have read in . So I experimented a bit and I have first tried to delete LDAP from the nsswitch.conf (and the authentication stopped to work as if only pam_ldap is not enough to do the job). Then I re-enabled LDAP in NSS and I deleted it from the PAM configuration (this time everything worked fine, as if pam_ldap is useless and NSS is enough to authenticate a user). Is there anyone who can help me to clarify this? Many thanks in advance. UPDATE I've just tried something now. I removed again all the pam_ldap entries in all pam configuration fields and I have also removed shadow: ldap from nsswitch.conf. As now in all the system there are only the lines: passwd: ldap files and group: ldap files in nsswitch.conf. Well... the login with LDAP users works perfectly, those two lines (plus /etc/ldap.conf) are enough to configure LDAP auth. From my knowledge PAM in independent from NSS, but my tests showed it's not. So I ask myself is it possible to completely disable NSS and use only PAM? Synchronize/change Area51 profile image I just visited  and noticed that my profile picture is not the same as on all other sites.  According to  the image will be synchronized when synchronizing the complete profile. I did that but the image is still the same.  Then I wanted to change the image in the Area51 profile directly - but I can only change to a gravatar image and can't use the new and fancy Stack Exchange image.  Is that a bug? How do you select the fastest mirror from the command line? I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple way to do it from from the command line? example:   Does Chocolatey run the native program installer? If I prefer simplicity, should I avoid packages with (Install) in their name? Unity remove logo in splash screen Word or Phrase for "Easily Swayed" What word or phrase best communicates the idea that a human (or other sentient being) is easily swayed, particularly between moral good and evil? Words I have found that are close are:   Impressionable - Easily influenced because of a lack of critical ability.   Implies that the subject lacks critical skills, and misses the concept of good and evil.  Gullible - Easily persuaded to believe something   Misses the concept of good and evil    I created a typical angels and demons scenario to demonstrate the polar extremes of the the spectrum. In this scenario, I lack the word to describe the humans, who can be influenced towards either end of the spectrum if impressed upon by an external entity.     The angels are devoted to good, and are immovable in their ideals. The demons are wicked, and will feign morality only to manipulate others. Both prey upon the humans, who are ____________.   I think that the key here is the spectrum of good an evil. Here are examples of other spectra and their associated words, for comparison.   Easily pushed from calm to angry: Temperamental Easily moved from determined to hopeless: Weak-willed Easily influenced by propaganda: How to typeset the symbol “^” (caret/circumflex/hat) I need to display the symbol '^'  d &lt;- dist(fascores, method = "euclidean")^2   How do I do that? Is it mandatory to have published papers while applying for PhD? I've heard from people saying that while applying for PhD, you need to have past experience in researching something and should have international publications. I was like more concentrated towards practical experience and have't had any publications. If I am aspiring to do PhD and want to apply, it would be impossible if such a criteria exists! How do I pass variables and data from PHP to JavaScript? Prove universal morphism is unique up to unique isomorphism. I'm following along Wikipedia page() on universal property, and this seems it should be trivial, but I couldn't finish the proof.  The definition I am working with:   The problem   So I want to prove that if $(A, u)$ and $(A', u')$ are universal morphism from $X$ to $F$, then there exists unique isomorphism $k: A \rightarrow A'$ such that $u' = F(k) \circ u$.   My attempt:   For any $B \in C$ and $f: X \rightarrow F(B)$, there exists unique $h: A \rightarrow B$ such that $f = h \circ u$.  Letting $B = A'$ and $f = u'$, we see that there exists unique $k: A \rightarrow A'$ such that $Fk \circ u = u'$.  This shows existence and uniqueness. We only need that $k$ is isomorphism, but this is the part I cannot prove.   Similarly, there exists unique $k': A' \rightarrow A$ such that $Fk' \circ u' = u$.  Plugging into each equation, we get  $$Fk \circ Fk' \circ u' = F(k \circ k') \circ u' = u'$$  $$Fk' \circ Fk \circ u = F(k' \circ k) \circ u = u$$  but this of course doesn't imply $F(k \circ k') = id$, so it seems useless.   Thanks for your help! made me think about the movie versions of the 7th book.  In Deathly Hallows Part II      Voldemort has Nagini attack Snape because Voldy thinks that Snape has the Elder Wand's allegiance. We know that Snape didn't actually have the allegiance, Draco did (and by then Harry did) and his plan had failed.   But if Voldy's plan had succeeded with Snape, would he have gotten allegiance?      Since voldemort didn't kill Snape, Nagini did... In what cases should I use a comma before "or"? Prove that the multiplicative inverse of $a$ modulo $m$ exists if and only if $a$ and $m$ are coprime. Prove that the multiplicative inverse of $a$ modulo $m$ exists if and only if $a$ and $m$ are coprime.  Can someone help me with this?