<div dir="ltr"><div><div><div>Hi,<br>Please help,<br>I'm linuxmint user (linuxmint 18), I always have error when to install some app/tools. the error said,my Pkg-config error. and the impact is my computer, can't install anything, even i use apt-get update, will back to the error dpk-config. I use synaptic,aptitude, but still cant install application what i want to install.<br><br>how to repair my pkg-config.i find this error on google with search key "Can't locate Dpkg/Arch.pm", but cant find the solution.<br>please help me, what should i do to repair this error.<br><br><div style="text-align:right"><i>linux-Vost # apt-get install -f</i><br><i>Reading package lists... Done</i><br><i>Building dependency tree       </i><br><i>Reading state information... Done</i><br><i>Correcting dependencies... Done</i><br><i>The following additional packages will be installed:</i><br><i>  libperl5.22 perl-modules-5.22</i><br><i>Recommended packages:</i><br><i>  perl</i><br><i>The following packages will be REMOVED:</i><br><i>  dpkg-dev pkg-config</i><br><i>The following packages will be upgraded:</i><br><i>  libperl5.22 perl-modules-5.22</i><br><i>2 upgraded, 0 newly installed, 2 to remove and 429 not upgraded.</i><br><i>27 not fully installed or removed.</i><br><i>Need to get 0 B/6.048 kB of archives.</i><br><i>After this operation, 2.139 kB disk space will be freed.</i><br><i>Do you want to continue? [Y/n] Y</i><br><i>(Reading database ... 246320 files and directories currently installed.)</i><br><i>Removing pkg-config (0.29.1-0ubuntu1) ...</i><br><i>Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.2 /usr/local/share/perl/5.26.2 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/pkg-config-dpkghook line 14.</i><br><i>BEGIN failed--compilation aborted at /usr/share/pkg-config-dpkghook line 14.</i><br><i>dpkg: error processing package pkg-config (--remove):</i><br><i> installed pkg-config package pre-removal script subprocess returned error exit status 2</i><br><i>dpkg: dpkg-dev: dependency problems, but removing anyway as you requested:</i><br><i> pkg-config depends on dpkg-dev.</i><br><br><i>Removing dpkg-dev (1.19.0.5) ...</i><br><i>Errors were encountered while processing:</i><br><i> pkg-config</i><br><i>E: Sub-process /usr/bin/dpkg returned an error code (1)</i><br><br><br></div></div>thank you.<br><br></div>regards,<br><br></div>parlin<br><div><div><div><div><br><br></div></div></div></div></div>