LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-02-2021, 09:57 AM   #1
richarddr
LQ Newbie
 
Registered: Apr 2021
Posts: 2

Rep: Reputation: Disabled
E: Impossible to fix problems, you kept (hold) broken packages.


Hey guys,
I am looking for help to solve the problem below.
Debian 10.9 installed from livecd.
New installation. After installing the system, running the apt-get update and upgrade commands does not return any errors.
Can anybody help me?

I can't install packages.
I always get the error message:
E: Impossible to fix problems, you kept (hold) broken packages.

I've followed other tutorials but to no avail.
I executed the commands below:

dpkg --configure -a
apt-get install -f

At Synaptic, I tried to fix broken packages. But Synaptic warns that it cannot fix it.
E: Impossible to fix problems, you kept (hold) broken packages.
E: Error, pkgProblemResolver :: Resolve generated failures, this can be caused by held packages (hold).

At no time did I check a package to "hold".

The error messages are as follows:

# apt-get install git
Reading package lists ... Done
Building dependency tree
Reading status information ... Ready
Some packages could not be installed. This may mean that
you requested an impossible situation or, if you are using the
unstable distribution, that some required packages have not been
created yet or have been removed from "Incoming".
The following information can help to resolve the situation:

The following packages have conflicting dependencies:
git: Depends: liberror-perl but not installable
E: Impossible to fix problems, you kept (hold) broken packages.


# apt-get install mariadb-server mariadb-client
Reading package lists ... Done
Building dependency tree
Reading status information ... Ready
Some packages could not be installed. This may mean that
you requested an impossible situation or, if you are using the
unstable distribution, that some required packages have not been
created yet or have been removed from "Incoming".
The following information can help to resolve the situation:

The following packages have conflicting dependencies:
mariadb-client: Depends on: mariadb-client-10.3 (> = 1: 10.3.25-0 + deb10u1) but will not be installed
mariadb-server: Depends on: mariadb-server-10.3 (> = 1: 10.3.25-0 + deb10u1) but will not be installed
E: Impossible to fix problems, you kept (hold) broken packages.

Last edited by richarddr; 04-03-2021 at 06:50 AM.
 
Old 04-02-2021, 10:57 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,346

Rep: Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479
how does your /etc/apt/sources.list look like?
 
Old 04-02-2021, 10:58 AM   #3
richarddr
LQ Newbie
 
Registered: Apr 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Problem solved.
The problem was in the /etc/apt/sources.list repository
I inserted these repositories:

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
 
Old 04-03-2021, 03:55 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,346

Rep: Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479
that is great. please mark the thread solved.
 
  


Reply

Tags
apt


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you fix broken packages when Synaptic is unable to? TokyoJohn Ubuntu 4 04-30-2017 09:23 PM
How to fix "E: Unable to correct problems, you have held broken packages."? chaitanyauk Linux - Newbie 2 07-14-2016 03:42 PM
apt-get upgrade lists many packages kept back malbery Debian 2 01-05-2005 01:15 PM
what does "The following packages have been kept back" mean joesbox Debian 2 10-26-2003 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration