Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 12:48 pm

Hello community,

I am currently attempting to update the Rasbpbian that's running my Pi, holding packages cryptsetup and initramfs-tools. So I held them with the command

Code: Select all

sudo apt-mark hold cryptsetup && sudo apt-mark initramfs-tools
They need to stay untouched because I haven't finished the compilation tests with more recent of these versions that are not available in the repositories.

But it seems that apt-get still can't update the other ones. Besides, the error message is just the same without the "hold".

Any idea where to start solving that, or at least an insight?

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 1:12 pm

What error messages?

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 1:32 pm

This one:

Code: Select all

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 cryptsetup-bin : Breaks: cryptsetup (< 2:1.4.3-1~) but 1.6.6-1 is installed
 initramfs-tools : Breaks: cryptsetup (< 2:1.1.0-2.1) but 1.6.6-1 is installed
E: Unmet dependencies. Try using -f.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 6:28 pm

Did you do an apt-get update before trying the upgrade?

Please list the contents of your /etc/apt/sources.list and all files in /etc/apt/sources.list.d
These command will do that for you

Code: Select all

cd /etc/apt;for i in sources.list sources.list.d/*;do echo;echo $i;echo ===;cat $i;done

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 10:31 pm

Here you are:

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://http.debian.net/debian wheezy-backports main
And

Code: Select all

$ cd /etc/apt;for i in sources.list sources.list.d/*;do echo;echo $i;echo ===;cat $i;done

sources.list
===
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://http.debian.net/debian wheezy-backports main

sources.list.d/collabora.list
===
deb http://raspberrypi.collabora.com wheezy rpi

sources.list.d/raspi.list
===
deb http://archive.raspberrypi.org/debian/ wheezy main
Of course I did update before attempting the upgrade.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 10:48 pm

You can't use the debian repo for compiled packages, they're not Pi compatible.
remove the line from sources.list, run 'sudo apt-get update' and hope for the best.

Gr.
Dirk.

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Trying to update Raspbian holding some packages?

Fri Dec 05, 2014 10:50 pm

Cubytus wrote:Here you are:

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://http.debian.net/debian wheezy-backports main
Get rid of that debian.net line before you update your system and destroy it. The debian ARM code is for an ARMv7 (or later) processor it will NOT run on the Raspberry Pi's ARMv6 processsor and installing it can leave your system in a completely unusable state.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Trying to update Raspbian holding some packages?

Sun Dec 07, 2014 7:31 pm

Thanks for the advice, but the error hasn't changed:

Code: Select all

 sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 cryptsetup-bin : Breaks: cryptsetup (< 2:1.4.3-1~) but 1.6.6-1 is installed
 initramfs-tools : Breaks: cryptsetup (< 2:1.1.0-2.1) but 1.6.6-1 is installed
E: Unmet dependencies. Try using -f.
Even though a hold has been put on these specific packages, it seems it always attempts to update them.

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Trying to update Raspbian holding some packages?

Sun Dec 07, 2014 7:35 pm

sudo apt-get install aptitude
It has really good support for holding packages and resolving dependencies.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Trying to update Raspbian holding some packages?

Sun Dec 07, 2014 7:59 pm

Not sure I get what's going on in Aptitude:
I tries to look for the incriminating packages, then re-add the "hold" on them with "=", but the "h" flag doesn't appear:

Code: Select all

i     i2c-tools                                                                                                    3.1.0-2        3.1.0-2
BB    initramfs-tools                                                                                              0.115~bpo70+1  0.115~bpo70+1 
i A   kbd                                                                                                          1.15.3-9       1.15.3-9
Besides, why would the "hold" not be effective from apt-get?

Return to “Raspberry Pi OS”