Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Issue with libbz2-1.0

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
valgio
Posts: 3
Joined: 2018-04-25 13:34

Issue with libbz2-1.0

#1 Post by valgio »

Hello i'm new here and new with debian. I have used ubuntu and archlinux. My problem is the libbz2-1.0. I was doing an upgrade

Code: Select all

sudo apt-get update
sudo apt-get upgrade
when i got

Code: Select all

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 bzip2 : Depends: libbz2-1.0 (= 1.0.6-8.1) but 1.0.5-6 is installed
E: Unmet dependencies. Try using -f.
:?: :?: :?:
so i ran

Code: Select all

sudo apt-get -f install 
and i got:

Code: Select all

Reading changelogs... Done
Selecting previously deselected package libbz2-1.0.
(Reading database ... 33010 files and directories currently installed.)
Preparing to replace libbz2-1.0 1.0.5-6 (using .../libbz2-1.0_1.0.6-8.1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libbz2-1.0_1.0.6-8.1_i386.deb (--unpack):
 triggers ci file contains unknown directive `activate-noawait'
configured to not write apport reports
                                      Errors were encountered while processing:
 /var/cache/apt/archives/libbz2-1.0_1.0.6-8.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
8)

What can i do to solve this? Have you got any suggests?
Thank you :D :)

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1410
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Issue with libbz2-1.0

#2 Post by None1975 »

Post your sources list here.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

valgio
Posts: 3
Joined: 2018-04-25 13:34

Re: Issue with libbz2-1.0

#3 Post by valgio »

Code: Select all

deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free

deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free

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

deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main
that is :D
I updated it this morning

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Issue with libbz2-1.0

#4 Post by bw123 »

...
bzip2 : Depends: libbz2-1.0 (= 1.0.6-8.1) but 1.0.5-6 is installed
...
That's like, pretty old ver installed, maybe squeeze?
resigned by AI ChatGPT

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Issue with libbz2-1.0

#5 Post by stevepusser »

Yes, you should change "stable" in your sources to "stretch" or you'll get an interesting surprise when Buster becomes stable.

And you have to tell us the history of your install. That old, old library just didn't magically install itself on a Stretch system.

AS for fixing it, using aptitude and its multiple solutions to install libbz2-dev usually does the trick.
MX Linux packager and developer

valgio
Posts: 3
Joined: 2018-04-25 13:34

Re: Issue with libbz2-1.0

#6 Post by valgio »

That is a virtual machine i took from internet. I wanted to install radare2 but git crashed. On google i read a possible solution is downgrading libcurl3-gnutls from 7.21.6-3 to 7.21.0-1. So i tried and i got

Code: Select all

libcurl3-gnutls is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 bzip2 : Depends: libbz2-1.0 (= 1.0.6-8.1) but 1.0.5-6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I updated and upgraded everything and here we are.
I'll try with aptitude. (Could you suggest me how to you it please?) :?

by now thank you very much. I hope to solve
Unlucky i'm very new in debian (today it's my first day XD ) .

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Issue with libbz2-1.0

#7 Post by stevepusser »

Did they give you the user or root passwords for the install?

Is it using sudo, root, or both?

Anyway, install aptitude as root or with sudo

apt install aptitude


Then with sudo or as root

Code: Select all

aptitude install libbz2-dev
If it says no, it can't, hit the "n" key for "NO" to try another solution. Continue until it gives a solution that upgrades libbz2-1.0 to the newer version.

Don't accept solutions that want to remove many, many packages, or critical ones. This means your system is probably even more damaged than you know.
MX Linux packager and developer

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Issue with libbz2-1.0

#8 Post by pendrachken »

stevepusser wrote:Did they give you the user or root passwords for the install?

Is it using sudo, root, or both?

Anyway, install aptitude as root or with sudo

apt install aptitude


Then with sudo or as root

Code: Select all

aptitude install libbz2-dev
If it says no, it can't, hit the "n" key for "NO" to try another solution. Continue until it gives a solution that upgrades libbz2-1.0 to the newer version.

Don't accept solutions that want to remove many, many packages, or critical ones. This means your system is probably even more damaged than you know.

Uhh, Steve....
Preparing to replace libbz2-1.0 1.0.5-6 (using .../libbz2-1.0_1.0.6-8.1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libbz2-1.0_1.0.6-8.1_i386.deb (--unpack):
triggers ci file contains unknown directive `activate-noawait'
It's not APT throwing the error, it's actually dpkg failing. Aptitude won't help with this. It's either a corrupt download / file, or it's a badly written install script that MAY be able to be force installed if absolutely necessary.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

Post Reply