Raspberry pi: Inconsistency detected, assertion failed - raspberry-pi

I get the below error when I do: sudo apt-get upgrade
Please help:
Extracting templates from packages: 100%
Preconfiguring packages ...
Inconsistency detected by ld.so: dynamic-link.h: 190: elf_get_dynamic_info: Assertion `info[20]->d_un.d_val == 17 || info[20]->d_un.d_val == 7' failed!
E: Sub-process /usr/bin/dpkg returned an error code (127)

Most probably file system was corrupted. I had to reinstall the OS :(

Related

How to install perf on redhat/ubi8 image for x86_64

yum install perf on redhat/ubi8 image (x86_64) gives the following error:
No match for argument: perf
Error: Unable to find a match: perf
How can I get this to work?

Having troubles installing ChezScheme-9.5.2 in Codeanywhere

Trying to install ChezScheme-9.5.2.tar.gz on Ubuntu 16.04 LTS on Codeanywhere. During sudo make command, get error message failed because uuid/uuid.h is missing. How do I get uuid/uuid.h in a location where $ sudo make can find it?
Turns out there were additional missing files, so did the following:
$ sudo apt install uuid-dev libncurses5-dev libncursesw5-dev libx11-dev
The make still fails, but not because of missing files. I believe the 512MB ram is too small.
In order to answer your question "What was your error message?" I've attempted to duplicate what happened. Think I've done so and here is the error message:
compiling cpnanopass.ss with output to cpnanopass.a6le
Mf-base:487: recipe for target 'bootall' failed
make[4]: *** [bootall] Killed
Mf-base:164: recipe for target 'allx' failed
make[3]: *** [allx] Error 2
Mf-base:181: recipe for target 'bootstrap' failed
make[2]: *** [bootstrap] Error 2
Makefile:20: recipe for target 'build' failed
make[1]: *** [build] Error 2
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 2
cabox#Python_Lua:~/workspace/ChezScheme-9.5.2$
First, had to do '$ sudo apt-get install uuid-dev' because 'apt install' does something different than 'apt-get install', which got uuid.h installed.

Corrupt info database format

I have an issue while using apt-get to update or install something on my Raspberry pi 2 model B.
I get this error whenever I use apt-get:
dpkg: error: corrupt info database format file '/var/lib/dpkg/info/format'
E: Sub-process /usr/bin/dpkg returned an error code (2)
I found in the Ubuntu forum that printing "1\n" to the format file would be the solution, and I tried that without succeeding.
When I print "1\n" to the format file and execute an update or install I get the following error:
dpkg: unrecoverable fatal error, aborting:
files list file for package 'acl' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
That smells like filesystem or disk corruption. You might need to fsck it, and see if other files have been damaged, or do a badblocks check or similar.

Postgresql9.5alpha1 installation error

I tried to install postgresql 9.5(alpha) Ubuntu, but after make world I got this error:
In file included from ../../../../src/include/postgres.h:47:0,
from varlena.c:15:
levenshtein.c: In function ‘varstr_levenshtein’:
../../../../src/include/c.h:726:7: error: static assertion failed: "Levenshtein hinting mechanism restricts NAMEDATALEN"
do { _Static_assert(condition, errmessage); } while(0)
levenshtein.c:104:2: note: in expansion of macro ‘StaticAssertStmt’
StaticAssertStmt(NAMEDATALEN <= MAX_LEVENSHTEIN_STRLEN,
levenshtein.c: In function ‘varstr_levenshtein_less_equal’:
../../../../src/include/c.h:726:7: error: static assertion failed: "Levenshtein hinting mechanism restricts NAMEDATALEN"
do { _Static_assert(condition, errmessage); } while(0)
levenshtein.c:104:2: note: in expansion of macro ‘StaticAssertStmt’
StaticAssertStmt(NAMEDATALEN <= MAX_LEVENSHTEIN_STRLEN,
make[4]: *** [varlena.o] Error 1
make[3]: *** [adt-recursive] Error 2
make[2]: *** [utils-recursive] Error 2
make[1]: *** [all-backend-recurse] Error 2
make: *** [world-src-recurse] Error 2
Does anybody have a suggestion?
In ubuntu you can install latest on this moment postgresql 9.5alpha2 from my ppa by this series of command from terminal:
sudo apt-add repository ppa:kazan417/postgresql
sudo apt-get update
sudo apt-get install postgresql-9.5 postgresql-contrib-9.5 postgresql-client-9.5
This commands not just install postgresql also it setup evrything you need for running postgresql.
Also you can install additional packages. or if you want harder way compile it from source by "dpkg-buildpackage" - this is better ubuntu way of compiling. And then installing by dpkg -i .
Here link you can find more info like dsc file and orig.tar.gz for compiling.

Raspbian dpkg error /var/lib/dpkg/triggers/File

I have just installed raspbian for my raspberry pi and I tried to install fswebcam with sudo apt-get install fswebcam and I get the error:
dpkg: error: syntax error in file triggers file `/var/lib/dpkg/triggers/File'
E: Sub-process /usr/bin/dpkg returned an error code (2)
I then thought about doing an update so did:
sudo apt-get update
sudo apt-get upgrade
This also produces the same error:
dpkg: error: syntax error in file triggers file `/var/lib/dpkg/triggers/File'
E: Sub-process /usr/bin/dpkg returned an error code (2)
The packages download but can not install.
Here is the cat of the file and it does seem wrong:
/usr/sharm/Ijbo0knsvadm-infO
▒e;{▒my
#▒q▒}db+/}sR+sh!reman man-db/uw▒>l▒caMom`O▒m!f)Er
/u3z/locax+#rcre/ma~--d▒
'6sZ/▒%▒Z6/maN ▒sn%ef▒e▒d/mqn`eaN-▒2
-T{3/,HbNarL-m(j▒Y▒gn?dabihF/▒yn/▒o▒u▒7s li▒g▒+b`.p%0;a▒m`f
)▒ks/lib/miG*mk▒En▒c lyb'dib2.-▒*armhf
/As▒5rx▒2E/▒xib-0.8.3c▒▒e"! ,cbomib2n0=zirmh/muk/Scil0ag/d%cAs▒o}sp%d#g/mime/packages miLe)cwrxfst
-u{s▒!▒kJ%/mho▒'qackawe;(S▒a▒'d▒m+/e-info
.5▒rlibog$j▒▒92bufm2.▒?:-1 ▒l▒qders libedc,pixbu&2.-2▒BiHf▒u▒b/diB)Az▒=nifT8▒wOuea▒ih$-gmj▒u▒.#}▒"▒`'2.10.0/loadgR{▒|i"gdN-#j▒▒▒f2.0-0>abolf-usr/s▒ar'/▒o▒6sb▒/n6Bonf+gusr-s``ve?ehosdw▒h{:5'fkod▒ g▒▒4!nO▒ig
/ts▒?{(I▒e->mYIf▒v▒nT1▒f4K▒nf+g
/usr/mi▒o▒rLoliNu▒=▒~u%abHHdlj▒:.0&▒▒ .0m▒mmduleS0▒9kg▒k:.)0:armh/}rr.l▒b/gtk-2.1/▒.10/p▒yL-gdules`liCgtk2.0d0▒D▒-(,+/ts▒'sHe2e-Bxymicatmozs0ndsktop-film,W▒a▒c
/usb/3``r▒/gcknv-defa}~D?▒o▒=▒f2X/5krH3▒u/▒c/,▒▒#~d!|opy(&Cg▒V4
/pSf-shaRe▒wcgnF+skhUi!{ gco~▒s▒5{r>u(a3e/Qo0pl▒r ;p▒f
/u3r.L▒▒prm-diFqX)gnuepb▒`f/gti-;o0/▒.l▒?iLmkve&Ls|▒0gTk▒#-0:qr-`f
w/0▒3~2./im▒od7|e,▒i`guk▒3-`*!Ex▒▒msr/sjarD▒unu!mandJ▒urR/▒yB/▒unu menu
/etc▒ee▒q-/eDH▒▒c }e.=
/Tsr/sha▒e/kcoos▒x▒color xi"▒▒o0-icon-theiesR▒y▒▒uoxc▒f3'gNo▒u onNme-i#on
▒▒e/'
I would prefer not having to re-install raspbian but I will if I must
Thanks
In the end I unfortunately had to format the sd card and reinstall raspbian. The output of the file is a lot more comprehensive now. I will put the contents at a later date.