我尝试安装如下软件包
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
libz-dev libssl-dev
然后我收到这个错误
root@ip-10-233-139-125:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
openmrs
Suggested packages:
tomcat6-admin lcab cabextract
The following NEW packages will be installed:
openmrs
0 upgraded, 1 newly installed, 0 to remove and 137 not upgraded.
1 not fully installed or removed.
Need to get 0 B/34.1 MB of archives.
After this operation, 34.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
openmrs
Install these packages without verification [y/N]? y
dpkg: error processing /var/cache/apt/archives/openmrs_1.6.1_all.deb (--unpack):
unable to open file '/var/lib/dpkg/tmp.ci//.svn': Is a directory
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/openmrs_1.6.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
然后我尝试
root@ip-10-248-109-175:~# sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of sana:
sana depends on openmrs; however:
Package openmrs is not installed.
dpkg: error processing sana (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sana
我删除了 /opt/ 中的 sana 目录,因为我不想要它。我尝试了一些其他
答案1
显然,清理缓存的包是一个解决方案,以下命令就可以做到这一点。
sudo apt-get clean