Midnight Commander

How to instal Midnight Commander?

 i tried apt-get install mc

but i get smt:

You might want to run `apt-get -f install’ to correct these:
The following packages have unmet dependencies:
libc6-ppc64: Depends: libc6 (= 2.11.3-4) but 2.11.2-2 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

whats wrong?

i did it

 aptitude install mc

Perfect! It worked for me to.

How did you lauched it? just “mc” does not work.

J

Works for me.

So how did you do that? What commands do I need to issue after logging in?

J

I have tried:

mkdir/shares/Public/build
apt-get update
apt-get install mc
aptitude install mc

And nothing. Still does not work

EDIT: weird, only my quote got posted so here’s what I did:

  • log in as root

  • apt-get update

  • apt-get install mc

  • mc

It did finally work. Just with one command: 

aptitude install mc

and then

mc

and Midnight commander come up!

The trick was that I had to do first Full Factory Restore.

Great, so I have updated to the latest firmware ap2nc-024006-048-20121206 and now I can’t install MC anymore. I’m getting the warning listed below. Any suggestions?

MyBookLiveDuo:~# apt-get update
Get:1 http://ftp.us.debian.org squeeze Release.gpg [1672B]
Get:2 http://ftp.us.debian.org wheezy Release.gpg [836B]
Get:3 http://ftp.us.debian.org squeeze Release [99.8kB]
Ign http://ftp.us.debian.org squeeze Release
Get:4 http://ftp.us.debian.org wheezy Release [223kB]
Ign http://ftp.us.debian.org wheezy Release
Get:5 http://ftp.us.debian.org squeeze/main Packages [6493kB]
Get:6 http://ftp.us.debian.org wheezy/main Packages [5765kB]
Fetched 12.6MB in 59s (211kB/s)
Reading package lists... Done
MyBookLiveDuo:~# apt-get install mc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  e2fslibs e2fsprogs libcomerr2 libslang2 mc-data
Suggested packages:
  gpart e2fsck-static links w3m lynx arj xpdf pdf-viewer dbview odt2txt gv catdvi djvulibre-bin imagemagick python-boto python-tz
The following NEW packages will be installed:
  mc mc-data
The following packages will be upgraded:
  e2fslibs e2fsprogs libcomerr2 libslang2
4 upgraded, 2 newly installed, 0 to remove and 326 not upgraded.
Need to get 3288kB of archives.
After this operation, 6790kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libcomerr2 e2fslibs e2fsprogs libslang2 mc-data mc
Install these packages without verification [y/N]? y
Get:1 http://ftp.us.debian.org wheezy/main libcomerr2 1.42.5-1 [55.4kB]
Get:2 http://ftp.us.debian.org wheezy/main e2fslibs 1.42.5-1 [208kB]
Get:3 http://ftp.us.debian.org wheezy/main e2fsprogs 1.42.5-1 [987kB]
Get:4 http://ftp.us.debian.org wheezy/main libslang2 2.2.4-15 [537kB]
Get:5 http://ftp.us.debian.org wheezy/main mc-data 3:4.8.3-10 [1086kB]
Get:6 http://ftp.us.debian.org wheezy/main mc 3:4.8.3-10 [416kB]
Fetched 3288kB in 11s (275kB/s)
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 19766 files and directories currently installed.)
Preparing to replace libcomerr2 1.41.3-1 (using .../libcomerr2_1.42.5-1_powerpc.deb) ...
Unpacking replacement libcomerr2 ...
Setting up libcomerr2 (1.42.5-1) ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 19767 files and directories currently installed.)
Preparing to replace e2fslibs 1.41.12-2 (using .../e2fslibs_1.42.5-1_powerpc.deb) ...
Unpacking replacement e2fslibs ...
Setting up e2fslibs (1.42.5-1) ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 19767 files and directories currently installed.)
Preparing to replace e2fsprogs 1.41.12-2 (using .../e2fsprogs_1.42.5-1_powerpc.deb) ...
Unpacking replacement e2fsprogs ...
Replaced by files in installed package util-linux ...
dpkg: error processing /var/cache/apt/archives/e2fsprogs_1.42.5-1_powerpc.deb (--unpack):
 unable to create `/usr/share/man/man8/mke2fs.8.gz.dpkg-new' (while processing `./usr/share/man/man8/mke2fs.8.gz'): No such file or directory
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/e2fsprogs_1.42.5-1_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I got the same problem.

Any solutions so far?

No, I had to downgrade using nfodiz’s modded firmware.

Problem is in missing directories. The solution is: “cd /usr/share” “mkdir man” “cd man” “mkdir man1” “mkdir man2” “mkdir man3” “mkdir man4” “mkdir man5” “mkdir man6” “mkdir man7” “mkdir man8” Afterwards use “apt-get -f install” and install midnight commander (and/or other software) normally with “apt-get install mc”. This is a solution for many MBL linux related problems (at least I had with).

The solution is to install it via  this guide.

Don’t go around messing with the apt-get command as the dependencies may brick your device!

:open_mouth: