dpkg conflict libmagic1 /etc/magic.mime

Preconfiguring packages ...
(Reading database ... 131336 files and directories currently installed.)
Preparing to replace libmagic1 4.26-1 (using .../libmagic1_5.04-5_i386.deb) ...
Unpacking replacement libmagic1 ...
dpkg: error processing /var/cache/apt/archives/libmagic1_5.04-5_i386.deb (--unpack):
trying to overwrite '/etc/magic.mime', which is also in package file 5.04-5
Selecting previously deselected package libdb4.8.
Unpacking libdb4.8 (from .../libdb4.8_4.8.30-2_i386.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

this is a debian squeeze problem, you can fix this by:

  1. (re)moving /etc/magic.mime
  2. install the libmagic package manually with force options

dpkg --force-overwrite -i /var/cache/apt/archives/libmagic1_5.04-5_i386.deb

Basic FTP operations

Binary, ASCII or Auto

You may see a selection in your FTP software (Cute FTP or other FTP programs) for ASCII mode,
Binary mode, and Auto mode.
It’s important to transfer images and soundfiles in Binary mode.
HTML documents, CGI scripts etc. should be transferred using ASCII mode.
If you fail to set this correctly your files may not appear as they should.
If you don’t know for sure, use Binary.

If you select Auto, your FTP program will automatically apply the correct setting,
either Binary or ASCII, to the files you are transferring based on their extensions.

Chmoding files and directories

Chmod is a simple term used on the Internet. It’s short for change the mode of a file.
When you change the mode of a file (chmod a file), your FTP software makes that file only
readable, only writeable, only executable or all of those.

To chmod a file or directory you have to highlight it, right click and select Chmod
(Cute FTP).

All of the buttons clicked would be a chmod 777. A chmod 774 would be all of Owner and Group
selected and only read selected in Other. A chmod 644 would be Read and Write selected for Owner,
and read selected for Group and Other.

When using the numeric system, the code for permissions is as follows:
r (read access) = 4
w (write access) = 2
x (execute access) = 1
rwx (read, write and execute access) = 7

Some scripts will tell you to chmod 775 (for example). The first 7 of our chmod 775 tells
to change the user’s permissions to rwx (because r=4 + w=2 + x=1 adds up to 7).
The second 7 (rwx) applies to the group, and the last number 5 (rx), refers to others.

See your Web host for instructions or a FAQ if you have further questions on using
FTP software or are running into difficulties.

%d bloggers like this: