Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I am using Linux Mint 20.1 Ulyssa and after the latest updates, I have problems with dpkg when installing new packages. Unfortunately, I could not solve it myself and I would like to get someone’s advice.
$ echo Y | sudo apt install openjdk-8-jdk (sudo) password for sergei: Reading package lists... Done Building dependency tree Reading state information... Done openjdk-8-jdk is already the newest version (8u282-b08-0ubuntu1~20.04). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up openjdk-8-jre-headless:amd64 (8u282-b08-0ubuntu1~20.04) ... update-alternatives: error: alternative rmid can't be master: it is a slave of java dpkg: error processing package openjdk-8-jre-headless:amd64 (--configure): installed openjdk-8-jre-headless:amd64 package post-installation script subprocess returned error exit status 2 dpkg: dependency problems prevent configuration of openjdk-8-jre:amd64: openjdk-8-jre:amd64 depends on openjdk-8-jre-headless (= 8u282-b08-0ubuntu1~20.04); however: Package openjdk-8-jre-headless:amd64 is not configured yet. dpkg: error processing package openjdk-8-jre:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-jdk-headless:amd64: openjdk-8-jdk-headless:amd64 depends on openjdk-8-jre-headless (= 8u282-b08-0ubuntu1~20.04); however: Package openjdk-8-jre-headless:amd64 is not configured yet. dpkg: error processing package openjdk-8-jdk-headless:amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-8-jdk:amd64: openjdk-8-jdk:amd64 depends on openjdk-8-jre (= 8u282-b08-0ubuntu1~20.04); however: Package openjdk-8-jre:amd64 is not configured yet. openjdk-8-jdk:amd64 depends on openjdk-8-jdk-headless (= 8u282-b08-0ubuntu1~20.04); however: Package openjdk-8-jdk-headless:amd64 is not configured yet. dpkg: error processing package openjdk-8-jdk:amd64 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: openjdk-8-jre-headless:amd64 openjdk-8-jre:amd64 openjdk-8-jdk-headless:amd64 openjdk-8-jdk:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) $ inxi -F System: Host: sergei-Z490-UD Kernel: 5.4.0-72-generic x86_64 bits: 64 Desktop: Cinnamon 4.8.6 Distro: Linux Mint 20.1 Ulyssa Machine: Type: Desktop Mobo: Gigabyte model: Z490 UD v: x.x serial: <superuser/root required> UEFI: American Megatrends v: F5 date: 08/28/2020 CPU: Topology: 6-Core model: Intel Core i5-10400F bits: 64 type: MT MCP L2 cache: 12.0 MiB Speed: 3947 MHz min/max: 800/4300 MHz Core speeds (MHz): 1: 3947 2: 3856 3: 3523 4: 3803 5: 3434 6: 3745 7: 3854 8: 3800 9: 3148 10: 3792 11: 3745 12: 3199 Graphics: Device-1: NVIDIA GT216 (GeForce GT 220) driver: nvidia v: 340.108 Display: x11 server: X.Org 1.20.9 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz OpenGL: renderer: GeForce GT 220/PCIe/SSE2 v: 3.3.0 NVIDIA 340.108 Audio: Device-1: Intel Comet Lake PCH cAVS driver: snd_hda_intel Device-2: NVIDIA GT216 HDMI Audio driver: snd_hda_intel Sound Server: ALSA v: k5.4.0-72-generic Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 IF: enp5s0 state: down mac: 18:c0:4d:76:59:be Device-2: TP-Link 802.11ac NIC type: USB driver: rtl88x2bu IF: wlxd03745b0a80f state: up mac: d0:37:45:b0:a8:0f IF-ID-1: docker0 state: up speed: N/A duplex: N/A mac: 02:42:46:44:60:88 IF-ID-2: vethcfa44ad state: up speed: 10000 Mbps duplex: full mac: 76:b3:1c:4b:92:25 Drives: Local Storage: total: 223.57 GiB used: 92.42 GiB (41.3%) ID-1: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB Partition: ID-1: / size: 218.57 GiB used: 92.42 GiB (42.3%) fs: ext4 dev: /dev/sda2 Sensors: System Temperatures: cpu: 40.0 C mobo: 16.8 C gpu: nvidia temp: 46 C Fan Speeds (RPM): N/A Info: Processes: 389 Uptime: 1h 59m Memory: 15.56 GiB used: 8.17 GiB (52.5%) Shell: bash inxi: 3.0.38