dist-upgrade attempts to remove webupd8's oracle-java7-installer

Bug #1302923 reported by QIII
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04

apt:
  Installed: 0.9.15.4ubuntu3
  Candidate: 0.9.15.4ubuntu4
  Version table:
     0.9.15.4ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
 *** 0.9.15.4ubuntu3 0
        100 /var/lib/dpkg/status

terminal output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  oracle-java7-installer
The following NEW packages will be installed:
  gstreamer1.0-pulseaudio phonon-backend-gstreamer phonon-backend-gstreamer-common
The following packages will be upgraded:
  apparmor apport apport-kde apt apt-transport-https apt-utils cpp g++ gcc kubuntu-desktop language-pack-en libapparmor-perl libapparmor1
  libapt-inst1.5 libapt-pkg4.12 liblightdm-gobject-1-0 liblightdm-qt-3-0 libpulse-mainloop-glib0 libpulse0 libpulsedsp lightdm
  phonon-backend-gstreamer1.0 phonon-backend-gstreamer1.0-common pulseaudio pulseaudio-module-x11 pulseaudio-utils python3-apport
  python3-problem-report python3-software-properties software-properties-common software-properties-kde unattended-upgrades
32 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 4,034 kB of archives.
After this operation, 188 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Expected behavior: dist-upgrade would not attempt to remove a package that installs Oracle Java 7

Observed behavior: dist-upgrade warns it will be removed.

Please advise if further information is needed.

Reassign affected package if appropriate.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apt 0.9.15.4ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
Uname: Linux 3.13.0-22-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Apr 4 19:02:40 2014
InstallationDate: Installed on 2014-03-28 (7 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131224)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
QIII (qiii) wrote :
QIII (qiii)
summary: - dist-upgrade attempts to remove webupd8's oracle-jave7-installer
+ dist-upgrade attempts to remove webupd8's oracle-java7-installer
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Zverushko (zverushko123) wrote :

after update:
sudo apt-get install oracle-java7-installer

sorry for russian, i write comments //

Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Следующий пакет устанавливался автоматически и больше не требуется:
  linux-image-generic
Для его удаления используйте «apt-get autoremove».
Предлагаемые пакеты:
  binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core
  ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho
  ttf-arphic-uming
Пакеты, которые будут УДАЛЕНЫ: //REMOVE!
  apt apturl nautilus-share python3-software-properties software-center
  software-properties-common software-properties-gtk ubuntu-desktop
  ubuntu-extras-keyring ubuntu-minimal unattended-upgrades
НОВЫЕ пакеты, которые будут установлены: //NEW
  oracle-java7-installer
ВНИМАНИЕ: Эти существенно важные пакеты будут удалены.
НЕ ДЕЛАЙТЕ этого, если вы НЕ представляете себе все возможные последствия!
  apt
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 11 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 0 B/18,6 kB архивов.
После данной операции, объём занятого дискового пространства уменьшится на 7 903 kB.
То, что вы хотите сделать, может иметь нежелательные последствия.
Чтобы продолжить, введите фразу: «Да, делать, как я скажу!»
 ?]

Revision history for this message
Rafał Gałka (gizmo-rafal) wrote :

I can confirm that attempt to install oracle-java7-installer will remove many important packages eg. apt, ubuntu-desktop.

Revision history for this message
Kamal Nasser (kamaln7) wrote :

Same thing here.

```
~: sudo apt-get install oracle-java7-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
  ttf-sazanami-mincho ttf-arphic-uming
The following packages will be REMOVED:
  apt apturl nautilus-share python3-software-properties software-center software-properties-common software-properties-gtk
  ubuntu-desktop ubuntu-extras-keyring ubuntu-minimal unattended-upgrades
The following NEW packages will be installed:
  oracle-java7-installer
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt
0 upgraded, 1 newly installed, 11 to remove and 1 not upgraded.
Need to get 18.6 kB of archives.
After this operation, 7,903 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]
```

Revision history for this message
David (daharper) wrote :

Same problem, these packages are affected:

The following packages will be REMOVED:
  apt apturl apturl-kde libmuonprivate2 muon-discover muon-notifier muon-updater nautilus-share python3-software-properties software-center
  software-properties-common software-properties-gtk software-properties-kde ubuntu-extras-keyring ubuntu-minimal unattended-upgrades
The following NEW packages will be installed:
  oracle-java6-installer

Revision history for this message
David (daharper) wrote :
Download full text (3.5 KiB)

Actually, I already had oracle java installed, the dist-upgrade removed them, this is the error message:

Setting up openjdk-7-jre-headless:amd64 (7u51-2.4.6-1ubuntu3) ...
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/keytool (part of link group keytool) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/keytool is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/pack200 (part of link group pack200) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/pack200 is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/rmid (part of link group rmid) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/rmid is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/rmiregistry (part of link group rmiregistry) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/rmiregistry is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/unpack200 (part of link group unpack200) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/unpack200 is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/orbd (part of link group orbd) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/orbd is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/servertool (part of link group servertool) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/servertool is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: warning: alternative /usr/lib/jvm/java-6-oracle/jre/bin/tnameserv (part of link group tnam...

Read more...

Revision history for this message
gifford tallmadge (gjtallmadge) wrote :

I am having the same issue as I have oracle java 8 installed and the update will not install apt without wanting to remove the oracle java. I am left with the choice of a partial update or having to remove oracle java to get the latest apt package installed.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Please do not comment on this bug report. It is a duplicate of bug #1302736.

And please do not comment on this either. The PPA needs to be fixed to not have Java 7, 8 packages pretend to be Java 6 packages.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.