CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 6581|回复: 2

Linaro 用apt-get install ,安装不了软件。

[复制链接]
发表于 2013-3-8 19:07:07 | 显示全部楼层 |阅读模式
把tf卡插到pc上修复一下
fsck.ext4 /dev/sdX   (X是你的U盘)

刚才在WindLand的提示下,修复了一下TF卡,发现系统正常了。
命令行:
sudo fsck.ext4 /dev/sdb1
sudo fsck.ext4 /dev/sdb2
一直按y就可以了。

然后用TTL线cu -s 115200 -l /dev/ttyUSB0
root@linaro-alip:~# apt-get install perl
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  perl-base perl-modules
Suggested packages:
  perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
  libpod-plainer-perl
The following packages will be upgraded:
  perl perl-base perl-modules
3 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
Need to get 8384 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com/ubuntu-ports/ precise-security/main perl armhf 5.14.2-6ubuntu2.2 [3609 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ precise-security/main perl-base armhf 5.14.2-6ubuntu2.2 [1384 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ precise-security/main perl-modules all 5.14.2-6ubuntu2.2 [3391 kB]
Fetched 8384 kB in 3min 15s (43.0 kB/s)                                       
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
dpkg: error: too-long line or missing newline in `/var/lib/dpkg/triggers/File'
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@linaro-alip:~#

安装不了程序。

回复

使用道具 举报

发表于 2013-3-8 21:20:58 | 显示全部楼层
看看 /var/lib/dpkg/triggers/File 里有什么?

cat /var/lib/dpkg/triggers/File
回复 支持 反对

使用道具 举报

发表于 2013-3-9 17:24:31 | 显示全部楼层
可能是fsck修复的时候把文件弄丢了或损坏了。。忘了之前怎么解决的还是重装的来着
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-26 10:09 , Processed in 0.021981 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部