Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error uninstalling a package: Criterion matches more than one package

    David Roodman posted yesterday a discussion of xtabond2, contributed by him
    I installed the package from the link he posted with the replace option
    I then uninstalled it (or thought I did), and re-installed it from SSC
    However, I probably did something wrong, and now when I type: adoupdate, I get:
    Code:
      [113] xtabond2 at https://raw.github.com/droodman/xtabond2/v3.7.1:
            installed package is up to date
    
      [114] xtabond2 at http://fmwww.bc.edu/repec/bocode/x:
            installed package is up to date
    I cannot uninstall either one because I get the error message:
    Code:
    criterion matches more than one package
    r(111);

  • #2
    Eric, depending on which one you want to uninstall, you can

    Code:
    ado uninstall [113]
    or

    Code:
    ado uninstall [114]

    Comment


    • #3
      Andrew Musau: Thanks for the information. I just searched the ado folder (and, in fact, my entire virtual drive) and could only find one copy xtabond2. I presume the problem comes from a file that registers the installations. I'll try what you propose and can always reinstall if needed

      On edit: I successfully "uninstalled" both versions [113] and [114]; and then reinstalled one. Thanks.
      Last edited by Eric de Souza; 23 Nov 2020, 07:40.

      Comment


      • #4
        Originally posted by Eric de Souza View Post
        I just searched the ado folder (and, in fact, my entire virtual drive) and could only find one copy xtabond2. I presume the problem comes from a file that registers the installations.
        Just for information, the file you seek is stata.trk. There might be multiple stata.trk files on your machine. Do not modify these files.

        Comment


        • #5
          daniel klein :Yes, that's the file. I did know that one must not tamper with it. I had an odd experience not so long ago.I could not update ado files
          Code:
           
           . ssc uninstall underid  package underid from http://fmwww.bc.edu/repec/bocode/u       'UNDERID': module producing postestimation tests of under- and over-identification after linear IV estimation could not rename \\be\userdata\home\EDESOUZA\ado\plus\next.trk to \\be\userdata\home\EDESOUZA\ado\plus\stata.trk could not rename \\be\userdata\home\EDESOUZA\ado\plus\backup.trk to \\be\userdata\home\EDESOUZA\ado\plus\stata.trk r(699);
          The problem went away by itself after some time. I tried to remember what could have led to its disappearance. Could have been a Stata update.

          Comment

          Working...
          X