Apt-get 으로 패키지 설치시 Broken pipe 에러가 납니다

우분투 12.04 LTS 사용중입니다. 콘솔모드로만 사용하고 있구요
phpmyadmin 을 설정하던중 제가 phpmyadmin 실수로 폴더 자체를 rm명령어로 삭제 해버렸는데
다시 apt-get 으로 phpmyadmin 을 재설치 할려는데 자꾸 아래같은 명령어가 뜨네요

[code:1jfe96l9]root@ubuntu:/var/www# apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
phpmyadmin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,343 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe phpmyadmin all 4:3.4.10.1-1 [5,343 kB]
Fetched 5,343 kB in 45s (117 kB/s)
Preconfiguring packages ...
Selecting previously unselected package phpmyadmin.
(Reading database ... 148228 files and directories currently installed.)
Unpacking phpmyadmin (from .../phpmyadmin_4%3a3.4.10.1-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/phpmyadmin_4%3a3.4.10.1-1_all.deb (–unpack):
unable to create /usr/share/phpmyadmin/browse_foreigners.php.dpkg-new' (while processing ./usr/share/phpmyadmin/browse_foreigners.php’): No such file or directory
No apport report written because the error message indicates an issue on the local system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/phpmyadmin_4%3a3.4.10.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)[/code:1jfe96l9]

구글링을 해보니

apt-get clean / apt-get update / apt-get -f install / dpkg --configure -a 등등을 사용해보라고 하는데 소용이 없습니다…
vi /var/lib/dpkg/status 해서 phpmyadmin 관련 블록도 삭제 해봤는데 소용이 없습니다…

고칠수 있는 방법이 없을까요 ㅠ

트리거가 걸려있고, 거기에서 계속 오류를 내는 것 같네요.

/usr/share/phpmyadmin 디렉토리를 지우신 것이라면, 그 디렉토리를 복구하신 후, 다시 설치 시도하시면 어떨까 싶네요.

[code:2oyaxkpl]
sudo apt-get download phpmyadmin
sudo dpkg -x phpmyadmin_3.5.8.1-1_all.deb extracted
sudo cp -prf extracted/usr/share/phpmyadmin /usr/share/
[/code:2oyaxkpl]

[quote="protochaos":26isps2j]트리거가 걸려있고, 거기에서 계속 오류를 내는 것 같네요.

/usr/share/phpmyadmin 디렉토리를 지우신 것이라면, 그 디렉토리를 복구하신 후, 다시 설치 시도하시면 어떨까 싶네요.

[code:26isps2j]
sudo apt-get download phpmyadmin
sudo dpkg -x phpmyadmin_3.5.8.1-1_all.deb extracted
sudo cp -prf extracted/usr/share/phpmyadmin /usr/share/
[/code:26isps2j][/quote:26isps2j]

감사합니다 잘 해결했습니다 ^^