Пытаюсь установить движок любовной игры , но мне кажется, что я не могу установить SDL2. Я получаю ошибку о его зависимостях. Я погуглил и попытался очистить, но это не сработало. Как я могу исправить / правильно установить sdl2?
Я попробовал -f, но не сработал
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libsdl2.0debian
The following NEW packages will be installed:
libsdl2.0debian
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
9 not fully installed or removed.
Need to get 0 B/346 kB of archives.
After this operation, 954 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 302833 files and directories currently installed.)
Unpacking libsdl2.0debian:amd64 (from .../libsdl2.0debian_2.0-20130310-2~quantal1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libsdl2.0debian_2.0-20130310-2~quantal1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.0.0', which is also in package libsdl2-2.0-0:amd64 2.0.0+dfsg1-quantal1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
No apport report written because MaxReports is reached already
Errors were encountered while processing:
/var/cache/apt/archives/libsdl2.0debian_2.0-20130310-2~quantal1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (
Вывод для liblove:
$ sudo apt-get install liblove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
liblove : Depends: libluajit-5.1-2 but it is not going to be installed
Depends: libphysfs1 (>= 1.1.1) but it is not going to be installed
Depends: libsdl2 (>= 2.0.1) but it is not going to be installed
Depends: libphysfs-1.0-0
libsdl2-image1.2 : Depends: libsdl2.0debian but it is not going to be installed
libsdl2-mixer1.2 : Depends: libsdl2.0debian but it is not going to be installed
libsdl2.0-dev : Depends: libsdl2.0debian (= 2.0-20130310-2~quantal1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[edit] @Avinash
sudo dpkg -r libsdl2-2.0-0
dpkg: warning: ignoring request to remove libsdl2-2.0-0:amd64, only the config
files of which are on the system; use --purge to remove them too
[edit2]
, когда я пытаюсь установить зависимости для liblove / love, это вывод
Reading package lists... Done
Building dependency tree
Reading state information... Done
autotools-dev is already the newest version.
autotools-dev set to manually installed.
build-essential is already the newest version.
libflac-dev is already the newest version.
libogg-dev is already the newest version.
libvorbis-dev is already the newest version.
pkg-config is already the newest version.
libdevil-dev is already the newest version.
libopenal-dev is already the newest version.
libfreetype6-dev is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libsdl2-dev : Depends: libsdl2 (= 2.0.1ppa1quantal1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Сначала удалите пакет libsdl2-2.0-0
, запустив,
sudo dpkg -r libsdl2-2.0-0
Затем попробуйте,
sudo apt-get -f install
Теперь попробуйте установить пакет liblove
, используя aptitude,
sudo apt-get install aptitude
sudo aptitude install liblove
sudo apt-get -f install
, если там какая-либо ошибка происходит тогда сообщение it' s вывод на pastebin.com и затем предоставляют ссылку здесь. – Charanraj Golla 07.05.2020, 00:37sudo apt-get purge libsdl2-2.0-0
илиsudo dpkg -P libsdl2-2.0-0
– Dave Clemmer 07.05.2020, 00:39