Fedora 17 yum update: could not finish packages updating [closed] - fedora

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
After processing dependencies "yum update" produce errors:
--> Finished Dependency Resolution
Error: Package: perl-CPAN-1.9600.01-215.fc17.noarch (updates)
Requires: perl = 4:5.14.2-215.fc17
Installed: 4:perl-5.14.3-202.fc16.i686 (#updates/16)
perl = 4:5.14.3-202.fc16
Available: 4:perl-5.14.2-211.fc17.i686 (fedora)
perl = 4:5.14.2-211.fc17
Available: 4:perl-5.14.2-215.fc17.i686 (updates)
perl = 4:5.14.2-215.fc17
Error: Package: 1:perl-IPC-Cmd-0.70-215.fc17.noarch (updates)
Requires: perl = 4:5.14.2-215.fc17
Installed: 4:perl-5.14.3-202.fc16.i686 (#updates/16)
perl = 4:5.14.3-202.fc16
Available: 4:perl-5.14.2-211.fc17.i686 (fedora)
perl = 4:5.14.2-211.fc17
Available: 4:perl-5.14.2-215.fc17.i686 (updates)
perl = 4:5.14.2-215.fc17
There are plenty errors of that type mostly concerning perl.
But required version of perl is installed:
yum install perl-5.14.2-215.fc17.i686
Loaded plugins: auto-update-debuginfo, presto, refresh-packagekit
Package matching 4:perl-5.14.2-215.fc17.i686 already installed. Checking for update.
Nothing to do
Skip broken option does not help.
It seems that upgrading from version 16 to 17 is stuck at the middle of process

I had exactly the same problem after the upgrade from Fedora 16 to Fedora 17 (this upgrade sucks). It seems the perl-5.14.2-XXX.fc17 package does not show up in the repo update list because the version already installes (perl-5.14.3.fc16) is 'newer'.
Here is what I've just done to solve the problem.
check which version you have already installed on you system:
perl-5.14.3.fc16
download the rpms for the newer version. In my case (you may need other libraries):
perl-5.14.2-211.fc17.x86_64.rpm
perl-libs-5.14.2-211.fc17.x86_64.rpm
perl-Carp-1.20-211.fc17.noarch.rpm
perl-Digest-MD5-2.51-211.fc17.x86_64.rpm
perl-Digest-1.17-2.fc17.noarch.rpm
perl-macros-5.14.2-211.fc17.x86_64.rpm
update allowing older packages (superuser):
# rpm -U --oldpackage perl-.rpm*
Go back to yum update to finish updating missing libraries and packages.
If you still have some libraries dependence issues that doesn't allow you to to this you may have to remove thos libraries before, but normally it show go smoothly.
I hope this helps.

I've solved it by removing problem packages and installing them again after update finished.

Related

Problem with the install of MySQLdb package for python3 in Ubuntu 22.04.1 LTS [closed]

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.

Unable to install google chrome on Ubuntu [closed]

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 1 year ago.
Improve this question
I've been trying to install .deb chrome file (google-chrome-stable_current_amd.64.deb) but unable to do. I only get the message saying that "It is not installable" and "Some packages could not be installed".
logs:
sudo apt install ./google-chrome-stable_current_amd.64.deb
Reading package lists... Done
Unsupported file ./google-chrome-stable_current_amd.64.deb given on commandline
Note, selecting 'google-chrome-stable:amd64' instead of './google-chrome-stable_current_amd64.deb'
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.
google-chrome-stable:amd64 : Depends: libasound2:amd64 (>= 1.0.16) but it is not installable
Depends: libatk-bridge2.0-0:amd64 (>= 2.5.3) but it is not installable
Recommends:: command not found
ubuntu#ip-:~$ E: Unable to correct problems, you have held broken packages.
E:: command not found
Try this method worked for me
Navigate to the folder were google-chrome-stable_current_amd64.deb is present
Example: cd/Downloads/
Run this code sudo dpkg -i google-chrome-stable_current_amd64.deb
If you encounter any problem run sudo apt install -f
And re run the below code
sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb
By running the above code Google-chrome will be installed.
To install the package use command like:
sudo apt install ./google-chrome-stable_current_amd.64.deb
This will install also dependencies.

How can I tell a debian package to forget about a file (such that the file doesn't get deleted during a purge or remove)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
A debian package I made overwrote files belonging to other packages (using --force-overwrite option). I realized this was bad, but after deleting these files from the package, building and reinstalling, it'll delete those files since it think's my package owns those files and no longer needs them.
I need dpkg to forget my package ever knew about those files, such that I can remove/purge/install and without it ever thinking about those files again.
Note that this package is only meant to be deployed on systems I control, not distributed to clients, so tinkering with already installed packages is acceptable, so long as I can get this back to a non-messed up state.
Couldn't find an answer on stackoverflow or here, appreciate any help or links to similar questions I missed.
Found that dpkg stores a list of each installed package's files here:
/var/lib/dpkg/info/mydpkg.list
Appears to be a list of every directory and file installed by the package, eg
/etc/udev
/etc/udev/rules.d
/etc/udev/rules.d/95-serial485-pi3.rules
/etc/udev/rules.d/97-serial485-pi4.rules
Fix: sudo vim /var/lib/dpkg/info/mydpkg.list and delete lines of files I want my package to forget about, therefore not trying to delete when uninstalling (or when installing a new version of the package that doesn't have those files anymore.) Unclear on if it's necessary to delete the lines referencing parent directories (eg /etc/udev and /etc/udev/rules.d above).
Bonus: I found this by using strace on the command that lists these files, finding out where it gets its info from:
strace dpkg-query -L mydpkg
Taken from here:
https://unix.stackexchange.com/questions/200171/where-does-dpkg-l-gather-its-information
We can use some commands that help us to keep the package dependency and remove the package.
Remove the package without removing the dependency.
sudo dpkg -r --force-depends <package_name>
Remove the package including the configuration file and without removing the dependency.
sudo dpkg -P --force-depends <package_name>
I highly don't recommend this thing because sometimes dependency may create an issue in the future.
I always prefer to uninstall all the dependency when I uninstall the package.
If your package is broken then you can use the following command to resolve an issue.
To fix the broken packages
sudo apt install -f
I have answered this question based on this article.

"reading files list for package 'inkscape': Input/output error" while trying to install packages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
It doesn't matter what I try to install using my package manager(sudo apt-get install whatever), I always get this error.
dpkg: unrecoverable fatal error, aborting:
reading files list for package 'inkscape': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
I have researched and have tried to rebuild my dpkg status file, and I have also tried to revert to an older version, but it either hasn't worked or I am doing it wrong.
Also, when I try to run the command "sudo apt-get update", I get this error.
The problem started when I lost my internet connection while downloading monodevelop. Any help is greatly appreciated.
I figured out the answer, so I will post it here in case anybody else has the same problem in the future.
NOTE: After this fix, apt-get no longer installs dependencies for me automatically without using the -f flag.
Go into the /var/lib/dpkg directory
Make a backup of the "status" file
Open the status file as root and find the package that causes the error.
In this case, its "PACKAGE: inkscape".
Delete all the text until the next PACKAGE: declaration in the file.

How can i install mysql workbench in fedora 11 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I download and try to install the rpm package for fedora 10, i also try compiled from source and finally ry to rebuild de rpm pakage from src.rpm package .. and nothing work.. does anyone know how can i install mysql workbench in fedora 11 ?
Thanks.
http://blog.famillecollet.com/post/2009/07/01/mysql-worbench-5.1.16-1-en
you can find the latest version of mysql-workbench for fedora 11 here!
Get the RPM package and try this:
yum localinstall mysql-workbench-whatever.rpm
Maybe it's a dependency problem. If that's the case, the above command will pick up whatever other packages are needed (if they're available in the Fedora repositories).
MySQL Workbench discussions: http://forums.mysql.com/index.php?151
I found the solution on this page : http://blog.famillecollet.com/post/2009/07/01/mysql-worbench-5.1.16-1
- wget http://rpms.famillecollet.com/remi-release-11.rpm
- rpm -Uvh remi-release-11.rpm
- yum --enablerepo=remi install mysql-workbench