Pacman repos - Unrecognized archive format

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Pacman repos - Unrecognized archive format

Postby maciar » Sat Jan 24, 2015 4:32 pm

Hello everyone.

Actually I don't know when it has happeened. My pacman seems to be broken. I'm still geting output:

pacman -S sth
$this->bbcode_second_pass_code('', '
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/alarm.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/alarm.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/aur.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/aur.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/alarm.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/alarm.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/aur.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/aur.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
...
')

I have already tried:

$this->bbcode_second_pass_code('', ' pacman -Scc ')
$this->bbcode_second_pass_code('', ' pacman -Syy ')

Removing /var/lib/pacman/sync
and then $this->bbcode_second_pass_code('', 'pacman -Syyu')

Changing my mirrors using rankmirrors, manually, and still nothing.

Have you got any ideas?
maciar
 
Posts: 7
Joined: Thu Jan 15, 2015 7:21 am

Re: Pacman repos - Unrecognized archive format

Postby maciar » Sat Jan 24, 2015 4:38 pm

Is it normal that core.db etc. look like .html files?
maciar
 
Posts: 7
Joined: Thu Jan 15, 2015 7:21 am

Re: Pacman repos - Unrecognized archive format

Postby crashmaster » Sun Jan 25, 2015 1:34 am

Like HTML files ? That's really not normal.
It looks like your filesystem is (partially) corrupted.
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: Pacman repos - Unrecognized archive format

Postby maciar » Sun Jan 25, 2015 4:41 pm

I have a new clue.

core.db and other .db files in /var/lib/pacman/sync
$this->bbcode_second_pass_code('', '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8" />
<title></title>
<script>

var localDomain="m.home";
var localDomainIP="192.168.0.1";
var url=window.location.href;
if(url.indexOf(localDomain)==-1 && url.indexOf(localDomainIP)==-1){
sendRequest();
}

function sendRequest(){
var request = false;

if(window.XMLHttpRequest) { //Mozilla 浏览器
request = new XMLHttpRequest();
if (request.overrideMimeType) {//设置MiME类别
request.overrideMimeType("text/xml");
}
}else if (window.ActiveXObject) { // IE浏览器
var MSXML = new Array('MSXML2.XMLHTTP','Microsoft.XMLHTTP','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP5.0');
for(var i=0;i<MSXML.length;i++){
try{
request = new ActiveXObject(MSXML[i]);
break;
}catch(e){
request = false;
}
}
}
if (!request){
window.location.href="http://192.168.0.1/index.html#home";
}else{
var url = "/goform/goform_set_cmd_process?goformId=SET_REMIND_FLAG&redirect_flag=9";
request.open("GET", url, true);
request.onreadystatechange = function(){
if (request.readyState == 4) {
if (request.status == 200) {
window.location.href="http://192.168.0.1/index.html#home";
} else {
window.location.href="http://192.168.0.1/index.html#home";
}
}
};
request.send(null);
}
}
</script>
<link type="text/css" href="theme/common.css" rel="stylesheet" />
<link type="text/css" href="theme/chosen.css" rel="stylesheet" />
<link href="favicon.ico" rel="shortcut icon" />
<meta name="viewport" initial-scale="1.0" />
<!--[if lt IE 9]>
<link type="text/css" href="theme/IE678css.css" rel="stylesheet" />
<![endif]-->
<!-- link href="theme/slideshow.css" rel="stylesheet" / -->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/lib/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div id='msgOverlay'>
<div><span id='msgDiv'></span></div>
</div>
<div id="mainBody-fluid">
<div id='topStatus' class="row-fluid">
<div id='lang' class="margintop8">
<div id="langLogoBar" class="row-fluid langborder">
<div class="span2">
<a target="_blank" id="zte_logo_href" class="hide">
<img id="zte_logo" height="45px" class="paddingleft10"/></a>
</div>
<div id="statusBar" class="span8 side-right" style="display: none;">
<span class="statusItem" title="network_type" i18n="true" id="networkType" data-bind="text: networkType"></span>
<span class="statusItem" title="network_provider" i18n="true" id="operator" data-bind="text: networkOperator"></span>
<span class="statusItem" title="signal_strength" i18n="true" id="signal_strength"><i class="signal" data-bind="attr:{'class': signalCssClass}">&nbsp;</i></span>
<span class="statusItem" title="connection_status" i18n="true" id="connection_status"><i class="icon_connection" data-bind="attr:{'class': connectionCssClass}">&nbsp;</i></span>
<span class="statusItem" title="sms_unread_count" i18n="true" id="sms_unread_count" data-bind="visible: smsUnreadCount() > 0 || showSmsDeleteConfirm()" style="display: none;">
<a onclick="return gotoSmsList();" href="javascript: void(0)">
<img data-bind="visible: smsUnreadCount() > 0 && !showSmsDeleteConfirm()" class="paddingbottom6" src="./img/sms_unread.png"/>
<img data-bind="visible: showSmsDeleteConfirm()" class="paddingbottom6" src="./img/sms_full.gif"/>
<span data-bind="visible: smsUnreadCount() > 0, text: smsUnreadCount" class="smsUnreadCount"></span>
</a>
</span>
<span class="statusItem" title="sim_status" i18n="true" id="statusItemSimStatus"><img data-bind="attr: {src: simStatus}" class="paddingbottom6"/></span>
<span class="statusItem" title="roaming_status" i18n="true" id="roamingStatus" data-bind="visible: roamingStatus() == 'R'" style="display: none;"><img class="paddingbottom6" src="./img/roaming.png"/></span>
<span class="statusItem" title="wifi_status" i18n="true" id="wifi_status" data-bind="visible: hasWifi"><img class="paddingbottom6" id="wifi_status_img" data-bind="attr: {src: wifiStatusImg}"/></span>
<span class="statusItem" title="battery_level" i18n="true" data-bind="visible: hasBattery"><img class="paddingbottom6" id="batteryCharging" data-bind="attr: {src: batteryPers}"/></span>
</div>
<div class="span2 side-right hide" style="height:46px" id="head2ImgDiv">
<img src="./img/head2.png" height="45px" />
</div>
</div>
<div class="row-fluid marginbottom5">
<div id="rediectFlagMsg" class="span10 side-left fontBold hide" trans="new_Version_Note" style="color:#FF0000"></div>
<div id="themeContainer" class="span2 side-right floatright" >
<span id="themeSection" style="display: none;">
<span class="colorBlock default" data-bind="css: {active: currentTheme() == 'style'}, click: function(data, event) { themeClickHandler(data, event, 'style') }">&nbsp;</span>
<!-- span class="colorBlock blue" data-bind="css: {active: currentTheme() == 'blue'}, click: function(data, event) { themeClickHandler(data, event, 'blue') }">&nbsp;</span-->
<span class="colorBlock mac" data-bind="css: {active: currentTheme() == 'mac'}, click: function(data, event) { themeClickHandler(data, event, 'mac') }">&nbsp;</span>
<link data-bind="attr: {href: themeHref}" rel="stylesheet" id="customTheme" type="text/css"/>
</span>
<select id="language" class="marginright10 hide" style="height:20px; width:75px" data-bind="options: languages, value: currentLan, optionsText: 'text', optionsValue: 'value', event:{ change: langChangeHandler}"></select>
<span id="logout">
<a id="logoutlink" class="logout marginright10 hide" trans="logout" href="javascript:void(0)" ></a>
</span>
</div>
</div>
</div>
</div>

<div id='nav' data-bind="visible:showMenu()" class="row-fluid">
<ul id="list-nav" data-bind="foreach: mainMenu" class="span12">
<li data-bind='attr: {mid: hash.substring(1)}'>
<a data-bind='attr: {href: hash, trans: hash.substring(1)}'></a>
</li>
</ul>
</div>
<div class="row-fluid">
<div id="mainContainer" class="row-fluid">
<div id='left' class="span3" data-bind='visible: secondMenu().length > 0'>
<ul id="leftmenu" data-bind="foreach: {data: secondMenu }">
<li data-bind="visible: false, text: $root.getThirdMenu($data)"></li>
<li data-bind="attr: {'class': 'menu-two-level ' + hash.substring(1) }">
<a data-bind='attr: {href: hash, trans: hash.substring(1)}'></a>
</li>
<li data-bind='visible: $root.thirdMenu().length > 0' class="hide">
<ul class="third" data-bind="foreach: $root.thirdMenu()">
<li data-bind="attr: {'class': 'menu-three-level ' + hash.substring(1) }">
<a data-bind='attr: {href: hash, trans: hash.substring(1)}'></a>
</li>
</ul>
</li>
</ul>
</div>
<div id='container' class="span9 paddingnone"></div>
</div>

<div id='link_polkmotel' class="span9 hide" style="float:right"><!--26001-->
<div>
<span trans="go_to" class="go_to_style"></span>
<span>
<img src="./img/line.png" style="float:right"/>
</span>
</div>
<div class="link_polkmotel_img">
<a href="http://www.plus.pl" target="_blank">
<img src="./img/polkmotel/button_plus.png" height="49px" class=" cursorhand"/></a>
<a href="http://www.ipla.tv" target="_blank">
<img src="./img/polkmotel/button_ipla.png" height="49px" class=" cursorhand"/></a>
<a href="http://www.muzodajnia.pl" target="_blank">
<img src="./img/polkmotel/button_muzodajnia.png" height="49px" class=" cursorhand"/></a>
<a href="https://ssl.plusgsm.pl/ebok-web/" target="_blank">
<img src="./img/polkmotel/button_plus_online.png" height="49px" class=" cursorhand"/></a>
</div>
</div>
<div id='link_polsat' class="span9 hide" style="float:right"><!--26012-->
<div>
<span trans="go_to" class="go_to_style"></span>
<span>
<img src="./img/line.png" style="float:right"/>
</span>
</div>
<div class="link_polkmotel_img">
<a href="http://www.ipla.tv/" target="_blank">
<img src="./img/polsat/button_ipla.png" height="49px" class="cursorhand" /></a>
<a href="http://www.muzo.pl" target="_blank">
<img src="./img/polsat/button_muzo.png" height="49px" class="cursorhand" /></a>
<a href="http://www.cyfrowypolsat.pl/oferta/internet/usluga-halo.cp" target="_blank">
<img src="./img/polsat/button_halo.png" height="49px" class="cursorhand" /></a>
<a href="https://icok.cyfrowypolsat.pl/icok/" target="_blank">
<img src="./img/polsat/button_icok.png" height="49px" class="cursorhand" /></a>
</div>


</div>
</div>

<div id='footer' class="side-center">
<span trans='copyright'></span>
</div>
</div>
<div id='loading'>
<div class='header'><span id="loadMsg"></span></div>
<br/>

<div style='text-align: center'>
<img id="loadingImg"/>
<div id="loading_container"></div>
</div>
</div>
<!-- confirm content -->
<div id='confirm'>
<div class='header'><span id="popTitle"></span></div>
<div class='icon'><img id='confirmImg'/></div>
<div class='message'></div>
<div class='promptDiv hide'><input name="promptInput" id="promptInput" type="text" maxlength="25" class="width190"/><br/>
<label class="promptErrorLabel colorRed"></label></div>
<div class='buttons'>
<input type="button" class="btn-1 simplemodal-close" id='okbtn' trans='ok'/>
<input type="button" class="btn-1 " id='yesbtn' trans='yes'/>
<input type="button" class="btn-1 simplemodal-close" id='nobtn' trans='no'/>
</div>
</div>
<div id="buttom-bubble">
</div>
<script type="text/x-jquery-tmpl" id="newMessagePopTmpl">
<div class="bubbleItem ${report}" id="${mark}">
<h3>
<span trans="${titleTrans}">${title}</span> ${name} <a href="javascript:void(0);" data-targetid="${mark}" class="bubbleCloseBtn"></a>
</h3>
<div class="bubbleContainer">
<div class="bubbleContent">${content}</div>
<div class="bubbleDatetime">${datetime}</div>
</div>
</div>
</script>
<script type="text/javascript" data-main="js/main" src="js/lib/require/require-jquery.js"></script>
</body>
</html>')

I'm using USB Modem as a internet gateway. It is available on 192.168.0.1 ip address or m.home domain. Mayby is it related in some way? If I remenber right, everything has beed ok before I connected USB modem on USB0 interface.
maciar
 
Posts: 7
Joined: Thu Jan 15, 2015 7:21 am

Re: Pacman repos - Unrecognized archive format

Postby crashmaster » Mon Jan 26, 2015 2:05 am

There has definitely going something totally wrong.
What happens with these .db files in /var/lib/pacman/sync after doing a 'pacman -Syy' ?

Compare the file sizes:

$this->bbcode_second_pass_code('', '
-rw-r--r-- 1 root root 28671 22. Jan 00:04 alarm.db
-rw-r--r-- 1 root root 68849 21. Jan 02:28 aur.db
-rw-r--r-- 1 root root 2675734 25. Jan 16:02 community.db
-rw-r--r-- 1 root root 169743 25. Jan 11:21 core.db
-rw-r--r-- 1 root root 2369379 25. Jan 14:33 extra.db
')

What does this 'file' command say?
file /var/lib/pacman/sync/core.db
It should be:
$this->bbcode_second_pass_code('', '
/var/lib/pacman/sync/core.db: gzip compressed data, last modified: Sun Jan 25 11:21:09 2015, from Unix
')
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: Pacman repos - Unrecognized archive format

Postby maciar » Mon Jan 26, 2015 5:48 pm

Thanks for reply.

Before, and after pacman -Syy, files look the same:

ls -l /var/lib/pacman/sync/
$this->bbcode_second_pass_code('', '
total 60
-rw-r--r-- 1 root root 11193 Jun 7 2013 alarm.db
-rw-r--r-- 1 root root 11193 Jun 7 2013 aur.db
-rw-r--r-- 1 root root 11193 Jun 7 2013 community.db
-rw-r--r-- 1 root root 11193 Jun 7 2013 core.db
-rw-r--r-- 1 root root 11193 Jun 7 2013 extra.db
')

file /var/lib/pacman/sync/core.db
$this->bbcode_second_pass_code('', '
/var/lib/pacman/sync/core.db: HTML document, UTF-8 Unicode (with BOM) text, with CRLF line terminators
')

No idea what is wrong :/
maciar
 
Posts: 7
Joined: Thu Jan 15, 2015 7:21 am

Re: Pacman repos - Unrecognized archive format

Postby WarheadsSE » Mon Jan 26, 2015 7:51 pm

Something is obviously playing middle man. Perhaps your USB modem's interface.

Use wget/curl to look at the result of the url, see what crap is happening.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pacman repos - Unrecognized archive format

Postby WarheadsSE » Tue Jun 06, 2017 1:47 pm

Just as an example: https://bbs.archlinux.org/viewtopic.php?id=216204

The wifi connection was hitting landing page, because the user needed to authenticate.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests