Ubuntu 安装redis出现如下情况
dpkg: warning: files list file for package 'libjpeg8:amd64' missing; assuming package has no files currently installed (Reading database ... 14832 files and directories currently installed.) Preparing to unpack .../libgtk-3-bin_3.18.9-1ubuntu3.1_amd64.deb ... Adding 'persion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin' dpkg-pert: error: rename involves overwriting '/usr/sbin/update-icon-caches.gtk2' with different file '/usr/sbin/update-icon-caches', not allowed dpkg: error processing archive /var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 2 Preparing to unpack .../dictionaries-common_1.26.3_all.deb ... Adding 'persion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common' dpkg-pert: error: rename involves overwriting '/usr/share/dict/words.pre-dictionaries-common' with different file '/usr/share/dict/words', not allowed dpkg: error processing archive /var/cache/apt/archives/dictionaries-common_1.26.3_all.deb (--unpack): subprocess new pre-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.1_amd64.deb /var/cache/apt/archives/dictionaries-common_1.26.3_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get update
sudo apt-get autoremove