Page 1 of 1

libmpc-dev: unmet dependency

Posted: Sun Jul 14, 2019 12:20 pm
by robbwu
Hi there,
Not sure if this is the right place to ask for help.
I tried to install a specific package libmpc3-dev but encountered the following error:

Code: Select all

$ sudo apt install libmpc-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmpc-dev : Depends: libmpc3 (= 1.0.3-1+b2) but 1.1.0-1~mx17 is to be installed
E: Unable to correct problems, you have held broken packages.

Any help?
Thanks in advance
Best regards

Re: libmpc-dev: unmet dependency

Posted: Sun Jul 14, 2019 12:25 pm
by Eadwine Rose
Can you please post the output of MX Tools - Quick System Info?

Just hit paste in a reply, the formatting happens automatically.

Welcome to the forum!

Re: libmpc-dev: unmet dependency

Posted: Sun Jul 14, 2019 12:37 pm
by robbwu
Here you go!

Code: Select all

System:    Host: mx Kernel: 4.19.0-5-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18.3_x64 Continuum May 26  2019 
           base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Laptop System: LENOVO product: 4286CTO v: ThinkPad X220 serial: <filter> 
           Mobo: LENOVO model: 4286CTO serial: <filter> UEFI [Legacy]: LENOVO 
           v: 8DET54WW (1.24 ) date: 10/18/2011 
Battery:   ID-1: BAT0 charge: 0 Wh condition: N/A model: N/A status: Unknown 
CPU:       Topology: Dual Core model: Intel Core i3-2350M bits: 64 type: MT MCP 
           arch: Sandy Bridge rev: 7 L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18341 
           Speed: 1389 MHz min/max: 800/2300 MHz Core speeds (MHz): 1: 814 2: 830 3: 805 4: 812 
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
           vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.19.2 driver: intel resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 18.2.6 
           direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Lenovo 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           Sound Server: ALSA v: k4.19.0-5-amd64 
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e v: 3.2.6-k 
           port: 6080 bus ID: 00:19.0 
           IF: eth0 state: down mac: <filter> 
           Device-2: Realtek RTL8188CE 802.11b/g/n WiFi Adapter driver: rtl8192ce v: kernel 
           port: 5000 bus ID: 03:00.0 
           IF: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 232.89 GiB used: 13.67 GiB (5.9%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
Partition: ID-1: / size: 93.02 GiB used: 13.67 GiB (14.7%) fs: ext4 dev: /dev/sda4 
Sensors:   System Temperatures: cpu: 59.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2982 
Repos:     Active apt repos in: /etc/apt/sources.list.d/antix.list 
           1: deb stretch main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb stretch-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb stretch main contrib non-free
           2: deb stretch/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb stretch main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 201 Uptime: 1h 38m Memory: 3.74 GiB used: 1.47 GiB (39.4%) Init: SysVinit 
           runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.33 

Re: libmpc-dev: unmet dependency

Posted: Sun Jul 14, 2019 12:39 pm
by timkb4cq
The likeliest reason for this is that you, at some point, installed a package from the MX Test repository - either libmpc3 directly or another package that pulled libmpc3 in as a dependency.

Since libmpc-dev must be exactly the same version as libmpc3 you are getting this error. Install libmpc-dev from the Test repository using the MX Package Installer. You'll have to uncheck the checkbox that hides library & developer packages and Refresh the list to see it.

Re: libmpc-dev: unmet dependency

Posted: Sun Jul 14, 2019 12:48 pm
by robbwu
Yes sir, you are spot on. Thanks!
Problem seems to be resolved by installing libmpc-dev from MX testing repo.