I am trying to install chromedriver.
I was trying on a virtual box. Then I switched to my actual box but got the same problem:
$ sudo apt install chromedriver
[sudo] password for michael:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package chromedriver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'chromedriver' has no installation candidate
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 months ago.
Improve this question
I'm trying to install the MySQLdb package for python3, because I need to use mysql for a project I'm currently doing.
But I can't get that package and work with it
I have tried the following things:
When I try to import it, I get this error:
python3 Get_Acess_and_Refresh_Tokens.py
Traceback (most recent call last):
File "/home/*****/Desktop/*****/Get_Acess_and_Refresh_Tokens.py", line 6, in <module>
from MySQLdb import _mysql
ModuleNotFoundError: No module named 'MySQLdb'
When I try to install python-mysqldb I get this message:
~$ sudo apt-get install python-mysqldb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-mysqldb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-mysqldb' has no installation candidate`
When I try to apt-get update I get this: I have just copied some errors because it detects them as spam
$ sudo apt-get update
Err:2 http://es.archive.ubuntu.com/ubuntu jammy InRelease
Temporary failure resolving 'es.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'es.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Edit: This last part I have solved with this post: https://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error
But the problem continues with the same result
Anyone know what I am doing wrong and any solution/alternative to deal with it?
Thanks in advance
This happens when you try to install a package about which APT does not have any idea. When you add software sources, you need to do an apt-get update so that your system APT's database is updated with all the packages on the repositories listed in the software sources lists.
Then when you try to install any package, APT checks the package name in its database, finds it and checks the name of the repository from where it got it. It then downloads the package from that repository.
This means of all the repositories listed in your software sources, none of them have the package named munin-memcached. I checked again and it is not available in official Ubuntu repositories.
After a bit of googling, I found that it is available in this PPA: chris-lea/munin-plugins
Add this PPA and install the packages at your own risk. I do not know this person.
To add the PPA, issue the below command:
sudo add-apt-repository ppa:chris-lea/munin-plugins
To install package munin-memcached, issue the below command:
sudo apt-get update && sudo apt-get install munin-memcached
I have read that mysqldb is not available in python3, and I couldn't install it in any way, therefore I switch to pymysql who seems to have the same behaviour. It has solved my problem.
i'm having docker installed in Ubuntu 20.04 and upgrading my gitlab-ee version from 10.1.0, now i've reached upto 13.12.15. The next major version is 14.0.10-ee.0, but i'm not able to update it.
When i run the command after taking the current version backup and set the repository, i got below error and not only for this version. i tried to run another major version, still same error.
root#6ef35e022b26:/# curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | bash Detected operating system as Ubuntu/xenial.
Checking for curl... Detected curl...
Checking for gpg... Detected gpg... Running
apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_gitlab-ee.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.
The repository is setup! You can now install packages.
root#6ef35e022b26:/# rm /etc/gitlab/skip-auto-backup
root#6ef35e022b26:/# touch /etc/gitlab/skip-auto-backup
root#6ef35e022b26:/# apt-get install gitlab-ee=14.0.12-ee.0
Reading package lists... Done Building dependency tree
Reading state information... Done
E: Version '14.0.12-ee.0' for 'gitlab-ee' was not found
root#6ef35e022b26:/# apt-get install gitlab-ee=14.0-ee.0
Reading package lists... Done Building dependency tree
Reading state information... Done
E: Version '14.0-ee.0' for 'gitlab-ee' was not found
root#6ef35e022b26:/# apt-get install gitlab-ee=14.0.12-ee.0
Reading package lists... Done Building dependency tree
Reading state information... Done
E: Version '14.0.12-ee.0' for 'gitlab-ee' was not found
root#6ef35e022b26:/# apt-get install gitlab-ee=14.1.8-ee.0
Reading package lists... Done Building dependency tree
Reading state information... Done
E: Version '14.1.8-ee.0' for 'gitlab-ee' was not found
Dear proj and cdo specialists,
I am trying to install cdo (climate data operator) on Ubuntu 18.04. I have gdal 3.0.0 and proj 7.0.1 installed. There are some missing dependencies which cannot be installed. It boils down to the point where it says libproj13 is missing and cannot be installed.
What I have done so far. Install cdo, it depends libmagplus3v5, this depends libgeotiff2, this depends libproj13, this can't be installed. See here:
root#eosao34:~# apt-get install cdo
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
cdo : Depends: libmagplus3v5 (>= 2.34.1-2~) but it is not going to be installed
Recommends: python-cdo but it is not installable
E: Unable to correct problems, you have held broken packages.
root#eosao34:~# apt-get install libmagplus3v5
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libmagplus3v5 : Depends: libgeotiff2 (>= 1.4.0) but it is not going to be installed
Depends: libterralib3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root#eosao34:~# apt-get install libgeotiff2
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libgeotiff2 : Depends: libproj13 (>= 4.8.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
root#eosao34:~# apt-get install libproj13
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libproj13 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libproj13' has no installation candidate
root#eosao34:~#
When I search for libproj1. I get this:
root#eosao34:~# locate libproj1
/usr/share/doc/libproj12
/usr/share/doc/libproj15
/usr/share/doc/libproj19
/usr/share/doc/libproj12/NEWS.Debian.gz
/usr/share/doc/libproj12/changelog.Debian.gz
/usr/share/doc/libproj12/copyright
/usr/share/doc/libproj15/AUTHORS
/usr/share/doc/libproj15/NEWS.Debian.gz
/usr/share/doc/libproj15/NEWS.gz
/usr/share/doc/libproj15/README.gz
/usr/share/doc/libproj15/changelog.Debian.gz
/usr/share/doc/libproj15/copyright
/usr/share/doc/libproj19/AUTHORS
/usr/share/doc/libproj19/NEWS.Debian.gz
/usr/share/doc/libproj19/NEWS.gz
/usr/share/doc/libproj19/README
/usr/share/doc/libproj19/changelog.Debian.gz
/usr/share/doc/libproj19/copyright
/var/cache/apt/archives/libproj12_4.9.3-2_amd64.deb
/var/cache/apt/archives/libproj19_7.0.0-1~bionic0_amd64.deb
/var/lib/dpkg/info/libproj12:amd64.list
/var/lib/dpkg/info/libproj12:amd64.md5sums
/var/lib/dpkg/info/libproj12:amd64.shlibs
/var/lib/dpkg/info/libproj12:amd64.symbols
/var/lib/dpkg/info/libproj12:amd64.triggers
/var/lib/dpkg/info/libproj15:amd64.list
/var/lib/dpkg/info/libproj15:amd64.md5sums
/var/lib/dpkg/info/libproj15:amd64.shlibs
/var/lib/dpkg/info/libproj15:amd64.symbols
/var/lib/dpkg/info/libproj15:amd64.triggers
/var/lib/dpkg/info/libproj19:amd64.list
/var/lib/dpkg/info/libproj19:amd64.md5sums
/var/lib/dpkg/info/libproj19:amd64.shlibs
/var/lib/dpkg/info/libproj19:amd64.symbols
/var/lib/dpkg/info/libproj19:amd64.triggers
So apparently i have libproj12, libproj15 and libproj19 installed.
I have the feeling that libprojXX is delivered with a specific version of proj. Because I have tried installing different versions of proj from apt package manager and now see all the different versions of libprojXX. But not libproj13. Unfortunately I cannot find a source which explains how to install libproj13 or which libprojXX is linked to which proj. I have tested installing cdo on other VMs where libproj13 is present. There it works.
My question is:
How do I get libproj13 installed so that cdo runs?
The easiest option is to install CDO using conda (https://anaconda.org/conda-forge/cdo).
However, I have a set of bash scripts for installing CDO and dependencies from source. This will presumably solve your problems: https://github.com/r4ecology/nctoolkit/tree/master/cdo_installers
My MySql is not working. When I want to reinstall MySql on linux server the I it shows following message.
sudo apt install mysql-server mysql-client --fix-broken
message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package mysql-server-5.7 needs to be reinstalled, but I can't find an archive for it.
Try sudo dpkg --remove --force-all mysql-server-5.7
If that doesn't work,
sudo vim /var/lib/dpkg/status
You can do this with any text editor.
After you open that find the section about mysql-server-5.7. Delete the section with the information pertaining to it and save the file. Make sure you do a backup of the status file before you do this.
Reinstall your package using apt-get install
In my case, the installation was messed up and I had to remove the requirement with dpkg
I received a message like:
E: The package <package-name> needs to be reinstalled, but I can't find an archive for it.
I was able to resolve like this:
Query faulty packages using dkpg
$ dpkg -C
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
<package-name> (no description available)
The following packages are missing the list control file in the
database, they need to be reinstalled:
<package-name> (no description available)
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
<package-name> (no description available)
force-remove install requirement for each listed package
$ sudo dpkg --remove --force-remove-reinstreq <package-name>
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libruby1.8
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
xserver-common
The following NEW packages will be installed:
xvfb
The following packages will be upgraded:
xserver-common
1 upgraded, 1 newly installed, 0 to remove and 308 not upgraded.
1 not fully installed or removed.
Need to get 0 B/899 kB of archives.
After this operation, 2,068 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up apt (0.8.16~exp5ubuntu13.2) ...
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
dpkg: error processing apt (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
apt
E: Sub-process /usr/bin/dpkg returned an error code (1)
Why I cannot install xvfb?
Get your admin to run this:
su
mkdir temp
mv /usr/local/lib/libreadline* temp
ldconfig
apt-get update
Then run your apt-get again
It seems the package xvfb uses the command "gpg" in the post install script. The gpg command seems to depend on libreadline, which does not seem to be compatible with gpg.
This is really strange. Usually a Debian/Ubuntu system does not install anything under /usr/local and the dependencies are in order. Could it be you have yourself installed libreadline into /usr/local/lib?
Ask the package manager which package owns the file /usr/local/lib/libreadline.so.6:
dpkg -S /usr/local/lib/libreadline.so.6
If it tells you a package where the file belongs, try to remove that package with
dpkg -P packagename
If no package owns it, remove the file.
If you want to keep /usr/local/lib/libreadline.so.6 and still have a working system, you should prevent programs from using it unless explicitly told to do so. You have probably modified the dynamic linker configuration in /etc/ld.so.conf. Undo those changes to get back to a working system.