You are not logged in.

#1 2013-05-20 16:15:11

12o
Member
Registered: 2009-05-19
Posts: 79

[SOLVED] jdk7-openjdk exists in filesystem when it's not installed

I'm having a problem updating the jdk7-openjdk package (jdk7-openjdk-7.u21_2.3.9-4). When I went to update via pacman, pacman replied that files existed in the filesystem. I removed the jdk and reinstalled, only to be told that the package still exists in the filesystem.

$ sudo pacman -S jdk7-openjdk
resolving dependencies...
looking for inter-conflicts...

Packages (1): jdk7-openjdk-7.u21_2.3.9-4

Total Installed Size:   19.34 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [##########################] 100%
(1/1) checking package integrity                   [##########################] 100%
(1/1) loading package files                        [##########################] 100%
(1/1) checking for file conflicts                  [##########################] 100%
error: failed to commit transaction (conflicting files)
jdk7-openjdk: /usr/bin/appletviewer exists in filesystem
jdk7-openjdk: /usr/bin/apt exists in filesystem
jdk7-openjdk: /usr/bin/extcheck exists in filesystem
jdk7-openjdk: /usr/bin/idlj exists in filesystem
jdk7-openjdk: /usr/bin/jar exists in filesystem
jdk7-openjdk: /usr/bin/jarsigner exists in filesystem
jdk7-openjdk: /usr/bin/javac exists in filesystem
jdk7-openjdk: /usr/bin/javadoc exists in filesystem
jdk7-openjdk: /usr/bin/javah exists in filesystem
jdk7-openjdk: /usr/bin/javap exists in filesystem
jdk7-openjdk: /usr/bin/jcmd exists in filesystem
jdk7-openjdk: /usr/bin/jconsole exists in filesystem
jdk7-openjdk: /usr/bin/jdb exists in filesystem
jdk7-openjdk: /usr/bin/jhat exists in filesystem
jdk7-openjdk: /usr/bin/jinfo exists in filesystem
jdk7-openjdk: /usr/bin/jmap exists in filesystem
jdk7-openjdk: /usr/bin/jps exists in filesystem
jdk7-openjdk: /usr/bin/jrunscript exists in filesystem
jdk7-openjdk: /usr/bin/jsadebugd exists in filesystem
jdk7-openjdk: /usr/bin/jstack exists in filesystem
jdk7-openjdk: /usr/bin/jstat exists in filesystem
jdk7-openjdk: /usr/bin/jstatd exists in filesystem
jdk7-openjdk: /usr/bin/native2ascii exists in filesystem
jdk7-openjdk: /usr/bin/rmic exists in filesystem
jdk7-openjdk: /usr/bin/schemagen exists in filesystem
jdk7-openjdk: /usr/bin/serialver exists in filesystem
jdk7-openjdk: /usr/bin/wsgen exists in filesystem
jdk7-openjdk: /usr/bin/wsimport exists in filesystem
jdk7-openjdk: /usr/bin/xjc exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/appletviewer exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/apt exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/extcheck exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/idlj exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jar exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jarsigner exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/java exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/java-rmi.cgi exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/javac exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/javadoc exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/javah exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/javap exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jcmd exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jconsole exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jdb exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jhat exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jinfo exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jmap exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jps exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jrunscript exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jsadebugd exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jstack exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jstat exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/jstatd exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/keytool exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/native2ascii exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/orbd exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/pack200 exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/policytool exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/rmic exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/rmid exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/rmiregistry exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/schemagen exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/serialver exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/servertool exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/tnameserv exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/unpack200 exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/wsgen exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/wsimport exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/bin/xjc exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/lib/ct.sym exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/lib/jconsole.jar exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/lib/sa-jdi.jar exists in filesystem
jdk7-openjdk: /usr/lib/jvm/java-7-openjdk/lib/tools.jar exists in filesystem
jdk7-openjdk: /usr/share/applications/jconsole.desktop exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/appletviewer.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/apt.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/extcheck.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/idlj.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jar.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jarsigner.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/javac.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/javadoc.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/javah.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/javap.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jcmd.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jconsole.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jdb.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jhat.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jinfo.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jmap.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jps.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jrunscript.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jsadebugd.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jstack.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jstat.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/jstatd.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/native2ascii.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/rmic.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/schemagen.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/serialver.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/wsgen.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/wsimport.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/ja/man1/xjc.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/appletviewer.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/apt.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/extcheck.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/idlj.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jar.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jarsigner.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/javac.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/javadoc.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/javah.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/javap.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jcmd.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jconsole.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jdb.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jhat.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jinfo.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jmap.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jps.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jrunscript.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jsadebugd.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jstack.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jstat.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/jstatd.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/native2ascii.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/rmic.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/schemagen.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/serialver.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/wsgen.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/wsimport.1.gz exists in filesystem
jdk7-openjdk: /usr/share/man/man1/xjc.1.gz exists in filesystem
Errors occurred, no packages were upgraded.
$ 

But when I go to check if it's installed:

$ pacman -Q | grep jdk
jre7-openjdk 7.u21_2.3.9-4
jre7-openjdk-headless 7.u21_2.3.9-4
$ 

The JREs are there, but the JDK is not. So somehow it's installed and not installed at the same time. How do I tell pacman that the installed package is not installed when it says it's both installed and not installed? Pacman -Rdd does not work as it's not installed. Pacman -S doesn't work as it's installed.

Last edited by 12o (2013-05-20 17:06:08)


Silence is golden.... duct tape is silver.

Time flies like the wind,
Fruit flies like bananas.

Offline

#2 2013-05-20 16:23:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

https://bbs.archlinux.org/viewtopic.php?id=130138 -> https://wiki.archlinux.org/index.php/Pa … stem.22.21

What's the output of 'ls -l /var/lib/pacman/local/jre7-openjdk/files'?

Offline

#3 2013-05-20 16:31:47

12o
Member
Registered: 2009-05-19
Posts: 79

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

$ ls -l /var/lib/pacman/local/jre7-openjdk/files
ls: cannot access /var/lib/pacman/local/jre7-openjdk/files: No such file or directory
$ 

Silence is golden.... duct tape is silver.

Time flies like the wind,
Fruit flies like bananas.

Offline

#4 2013-05-20 16:34:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

Sorry, I forgot about the version.
What's the output of

ls -l /var/lib/pacman/local/jre7-openjdk-*

Offline

#5 2013-05-20 16:35:51

12o
Member
Registered: 2009-05-19
Posts: 79

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

$ ls -l /var/lib/pacman/local/jre7-openjdk-*
/var/lib/pacman/local/jre7-openjdk-7.u21_2.3.9-4:
total 16K
-rw-r--r-- 1 root root  808 May 20 02:03 desc
-rw-r--r-- 1 root root 1.3K May 20 02:03 files
-rw-r--r-- 1 root root  464 May 20  2013 install
-rw-r--r-- 1 root root 1.6K May 20  2013 mtree

/var/lib/pacman/local/jre7-openjdk-headless-7.u21_2.3.9-4:
total 88K
-rw-r--r-- 1 root root 654 May 20 02:03 desc
-rw-r--r-- 1 root root 34K May 20 02:03 files
-rw-r--r-- 1 root root 207 May 20  2013 install
-rw-r--r-- 1 root root 42K May 20  2013 mtree
$ 

Silence is golden.... duct tape is silver.

Time flies like the wind,
Fruit flies like bananas.

Offline

#6 2013-05-20 16:38:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

OK, your package database looks fine.
Which package own these existing files?

pacman -Qo /usr/bin/appletviewer

Offline

#7 2013-05-20 16:44:06

12o
Member
Registered: 2009-05-19
Posts: 79

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

It doesn't look like this file is owned by anything.

$ pacman -Qo /usr/bin/appletviewer
error: No package owns /usr/bin/appletviewer
$

Silence is golden.... duct tape is silver.

Time flies like the wind,
Fruit flies like bananas.

Offline

#8 2013-05-20 16:48:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

Either you installed jdk7-openjdk w/o pacman (i.e. 'make && make install' or whatever) or the 'files' file for the old version of jdk7-openjdk (before you tried to upgrade) was gone and pacman didn't remove these files when you told it to remove jdk7-openjdk.

You can either remove these files manually or run 'pacman -S jdk7-openjdk --force' to forcibly overwrite them.

Offline

#9 2013-05-20 17:00:21

12o
Member
Registered: 2009-05-19
Posts: 79

Re: [SOLVED] jdk7-openjdk exists in filesystem when it's not installed

Thank you very much for your help. I greatly appreciate it. I only use pacman to upgrade, update, or remove anything. Even if the package is from the AUR; in which case I use the -U. In this case, I tried to install the JRE, JRE headless, and the JDK at the same time. All of the tanked, so I used the pacman -Rdd to remove the JDK package. That's when the trouble started.

If it's safe to use the --force command in this case, I'll try it.

**UPDATE**
Looks like using the --force option worked. When I run the previous command, I get:

$ pacman -Qo /usr/bin/appletviewer
/usr/bin/appletviewer is owned by jdk7-openjdk 7.u21_2.3.9-4
$

Thanks again for the help! I'll mark the thread 'solved'.

Last edited by 12o (2013-05-20 17:05:48)


Silence is golden.... duct tape is silver.

Time flies like the wind,
Fruit flies like bananas.

Offline

Board footer

Powered by FluxBB