![安装 sqldeveloper – 依赖性问题:sqldeveloper 依赖于 libc6-amd64 (>= 2.2.5)](https://linux22.com/image/984086/%E5%AE%89%E8%A3%85%20sqldeveloper%20%E2%80%93%20%E4%BE%9D%E8%B5%96%E6%80%A7%E9%97%AE%E9%A2%98%EF%BC%9Asqldeveloper%20%E4%BE%9D%E8%B5%96%E4%BA%8E%20libc6-amd64%20(%3E%3D%202.2.5).png)
dpkg: dependency problems prevent configuration of sqldeveloper: sqldeveloper depends on libc6-amd64 (>= 2.2.5).
dpkg: error processing package sqldeveloper (--install):dependency problems - leaving unconfigured
Errors were encountered while processing: sqldeveloper
sudo apt-cache policy libc6-amd64
libc6-amd64:i386:
Installed: 2.19-0ubuntu6.6
Candidate: 2.19-0ubuntu6.6
Version table:
*** 2.19-0ubuntu6.6 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
100 /var/lib/dpkg/status
2.19-0ubuntu6 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
uname -a
Linux Inspiron-3537 3.19.0-28-generic #30~14.04.1-Ubuntu SMP Tue Sep 1 09:32:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
sudo apt-get remove -s libc6-amd64:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
lib64gcc1:i386 lib64stdc++6:i386 libc6-amd64:i386
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Remv lib64stdc++6:i386 [4.8.4-2ubuntu1~14.04]
Remv lib64gcc1:i386 [1:4.9.1-0ubuntu1]
Remv libc6-amd64:i386 [2.19-0ubuntu6.6]
sudo apt-get remove libc6-amd64:i386
sudo dpkg -i sqldeveloper_4.1.1.19.59-2_all.deb
/WorkSpace/DataBase$ sudo dpkg --install sqldeveloper_4.1.1.19.59-2_all.deb
Selecting previously unselected package sqldeveloper.
(Reading database ... 260675 files and directories currently installed.)
Preparing to unpack sqldeveloper_4.1.1.19.59-2_all.deb ...
Unpacking sqldeveloper (4.1.1.19.59-2) ...
dpkg: dependency problems prevent configuration of sqldeveloper:
sqldeveloper depends on libc6-amd64 (>= 2.2.5).
dpkg: error processing package sqldeveloper (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sqldeveloper
sudo apt-cache policy libc6
libc6:
Installed: 2.19-0ubuntu6.6
Candidate: 2.19-0ubuntu6.6
Version table:
*** 2.19-0ubuntu6.6 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
2.19-0ubuntu6 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
cat DEBIAN/control
Package: sqldeveloper
Version: 4.1.1.19.59-2
Architecture: all
Maintainer: Ankit Chaudhary <anki@Inspiron-3537>
Installed-Size: 393765
Depends: libc6-amd64 (>= 2.2.5), libc6-i386 (>= 2.1.3)
Section: alien
Priority: extra
Description: Oracle SQL Developer
Oracle SQL Developer is a new, free graphical tool that enhances productivity and simplifies database development tasks. With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, and edit and debug PL/SQL statements. You can also run any number of provided reports, as well as create and save your own.
.
(Converted from a rpm package by alien version 8.90.)
答案1
我怀疑你已经使用过alien
,例如
sudo alien --script sqldeveloper-4.1.1.19.59-1.noarch.rpm
创建 deb 包。遗憾的是,无法将创建的包安装在您的系统中,因为libc6-amd64
所需版本的 Trusty 不支持该包。
通过修复安装
sudo apt-get purge sqldeveloper
sudo apt-get install -f
不过有趣的是,在我的例子中,生成的 DEB 包不依赖于libc6-amd64
。但对于你来说... 好吧
因此,启动下面的命令。将整个块复制并粘贴到终端中,然后按Enter
mkdir deb$$; \
cp sqldeveloper_4.1.1.19.59-2_all.deb deb$$; \
cd deb$$; dpkg-deb -x sqldeveloper_4.1.1.19.59-2_all.deb deb; \
cd deb; \
dpkg-deb -e ../sqldeveloper_4.1.1.19.59-2_all.deb
现在开始
cat DEBIAN/control
你应该看到类似这样的内容
Package: sqldeveloper
Version: 4.1.1.19.59-2
Architecture: all
Maintainer: root <root@sturm>
Installed-Size: 393753
Depends: libc6 (>= 2.2.5), libc6-i386 (>= 2.1.3)
Section: alien
Priority: extra
Description: Oracle SQL Developer
Oracle SQL Developer is a new, free graphical tool that enhances productivity and simplifies database development tasks. With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, and edit and debug P$
.
(Converted from a rpm package by alien version 8.93.)
但你的情况并非如此。哦哦
因此,启动下面的命令来纠正这个问题并重建包
sed -i 's/libc6-amd64/libc6/' DEBIAN/control
cd ..
sudo dpkg-deb -b deb
最后安装
sudo dpkg -i deb.deb
就这样;)
请从终端进行第一次启动,就我而言,必须在那里回答一个问题。
sqldeveloper
你会看见
Oracle SQL Developer
Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/aboettger/.sqldeveloper/4.1.0/product.conf
我已经用过了
/usr/lib/jvm/java-8-oracle
答案2
这是不言自明的。尝试安装libc6-amd64安装前 sql开发人员就不会有问题了。
如果您有互联网连接,请尝试:
sudo apt-get install libc6-amd64
如果没有,请从以下位置手动下载http://packages.ubuntu.com/并像安装前一个包一样使用 dpkg 安装它。
答案3
这是因为您的软件包比软件支持的版本新。您必须卸载并重新安装旧版本。
另外:尝试安装,如果失败,运行“sudo apt-get -f install”以查看是否可以修复任何缺失的依赖项。