epson-printer-utility error loading shared libraries
When trying to run the printer utility I downloaded from Epson website I get the following error:
I presume this is because the QT4 libraries aren’t installed on Ubuntu 20.04 LTS. And it seems no longer available to install.
I have googled and tried installing various QT4 libraries by various means without success. For example:
I’m new to linux so be kind and very specific with what I need to do!
4 Answers 4
Ubuntu 20.04 LTS no longer has Qt4 libraries on purpose. See this question, for instance. Your best bet is compiling from source, or setting up a virtual machine with an older Ubuntu version as the guest OS.
Or, if you’re feeling adventurous, you can add this PPA, then install Qt4:
This removes qt5-default from your system. Let’s add it back:
Now you have both Qt4 and Qt5 libraries installed in your system in a fragile balance. The Qt4 libraries will be removed the next time you run sudo apt autoremove to clean up installed packages. Let’s prevent that from happening:
I fixed this problem without using a PPA.
I downloaded three packages from bionic repo:
and extracted these files using Archive manager:
then copied all 5 files to /usr/lib/x86_64-linux-gnu
You can download the libqt4 packages for the previous release, extract them, and tell epson-printer-utility to use them by setting LD_LIBRARY_PATH . I made a script:
The following worked for me on Ubuntu 20.10 for epson-printer-utility_1.1.1-1lsb3.2_amd64.deb
Extract from them the following files:
Copy these two files to /usr/lib/x86_64-linux-gnu . Assuming that folder with the files mentioned above is current folder in terminal:
Make appropriate symbolic links in /usr/lib/x86_64-linux-gnu :
The above makes Epson Printer Utility up and running. But its functionality is. Well, it is disappointing. All the functions provided can be performed on the device itself.
N.B. The following message does not seem to harm the application.
Gtk-Message: Failed to load module «overlay-scrollbar»
It can be fixed by installation of overlay-scrollbar-gtk2 package:
Источник
Libqtgui so 4 linux mint
Hi everyone,
error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory.How to install the library..Please help me.
Have you got this ptoblem on install your application in another machine?
Did you install Qt 4 on your target computer ?
hi sir,
No i d’t install qt in target computer, why because i need to check the exe file in target pc without Qt i need to run my exe file .In One pc i have qt and written the sample application that exec file need to be run in target machine without qt . Please help me sir..
You need to ship run time with your binary.
On terminal, execute ldd yourexefilepathonlinux. It will show you the dependencies needs to ship on target machine.
sorry sir..am unable to get u.
If you want to run your executable on a another computer without Qt installed (I don’t mean the complete SDK just the libraries) you have to provide the needed libraries yourself.
However, depending on your target computer, you should simply install the distribution provided Qt
Thank you sir,
what commands are needed to install libQtgui.so.4.Please help me
That all depends on the distribution you are using
i d’t get u sir..please tel me clearly
You are using linux, so you are using a distribution like e.g. Ubuntu, Debian, Gentoo etc. Which one is it ?
Hi sir.
linux opensuse.
YaST is your friend then
Hi sir,
Please help on ,How to install only qt libraries in target system.
Run YaST on your target and search for the Qt libraries
Thank u sir,, but if i copy all libraries to target it is showing same error that libqtGui.so.4 is not found.Please help me.
Wait, what is your target ?
Gdmrd sir,
My target and host is linux opensuse,i instaled qt in host machine in that i written a sample programe ,that exe must run in my target machine without insatling qt.when i run exe it is asking libQtGui.so.4 is not found.Please help to quit from this error.
Can you explain why you can’t install the libs on your target ?
Still that doesn’t answer my question: since the target is running OpenSuse, why don’t you use the package manager ?
hi sir,
i d;t get u sir..am new one to qt .
It’s nothing Qt specific. So let’s start again:
- list item What exactly is your target ? Computer ? Embedded board ? etc.
- What processor does it use ?
* What exact OS is it running ?
How usb mouse will work on beagle board.Is ther any drivers are essential .Please do help me sir.
To be able to help you, you should start by first answering my questions.
Not knowing what you are running on your board I can’t answer.
I ran command startx in Lcd 7″,white color terminals got appeared ther am geting movement of cursor,but when i deploy Gui, ther mouse canot work ther ,Please help me sir.
I hace done procdure as per this link sir,problem is Mouse .
What exact command do you write to start your application ?
i did not write any command, i just deployed qt gui and it appeared on beagle bone lcd 7
How to use Udpsocket in qt for Beagle bone .Please give me the sourse code for this.
hi all. i have the same problem.
What exactly is your target ? i wrote a simple Qt program for mini2440 friendly arm. Embedded boar linux gnu.
when i execute my program ( and comment running Qtopia) it show me this error : /armNEW: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
i search and find this file in /usr/local/trolltech/qtEmbedded/. so why i have error?
now what can i do now?
Hi,
/usr/local/trolltech/qtEmbedded/ is a non standard path and probably not the same you have on your computer when cross-compiling your application.
You can use LD_LIBRARY_PATH to add that path for the loader to search before starting your application.
Hi @SGaist , I am building qt application for an arm embedded target.I have successfully transferred the project files via scp using qt creator. However, the application outputs this error:
error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
How can I ensure I have the said library on my target?Is it something I need to cross-compile?
I have libQtGuiE.so.4 in /usr/lib
Thanks.
You have a name mismatch. The one you use on your desktop has no E in its name. You should have the same set of libraries on both the desktop and target.
@SGaist Thank you so much.Just a slight clarification, the E stands for qt Embedded or what?
I’ll give you feedback if I manage to fix this.
Likely, yes. I remember vaguely that you could put a suffix when configuring Qt 4.
@SGaist Do you have an idea how I can put that suffix during configuration?
I have confirmed I am using the same qt version qt embedded 4.8.7 in both the host cross compilation pc and target. However I am still getting this error during deployment.What could be the issue?How do I resolve this please?
I may have been wrong there and maybe mixed it with -prefix-install .
The most simple is to deploy the libraries you are using for cross-compilation on the device.
Источник
Libqtgui so 4 linux mint
To make the upgrade took me 20 min! But in reality I haven’t seen any difference at all yet except the new LibreOffice update.
I tried to upgrade; I tried a new install. Neither worked.
What was worst was that I could not restore any timeshift backup. The general complaint related to the lack of a GPT grub partition. After shifting partitions around, yesterday I finally managed to create one, and reinstall Mint 19.3. I gave up on trying timeshift restores.
This has been a most unhappy several days. Ask my wife!
took three hours to upgrade from 19.3 to 20
now i have lost access to the internet.
next thing to do?
on this laptop it took 30 mins and i am still on the web
oh for confusion
sometimes things work
sometimes they don’t. if only i was brainy and could work out what is wrong with the other machine.
It takes me an all afternoon, but the upgrade went very clean and smooth for the first of my 3 laptops, the oldest one. Some «foreign packages» (but not all of them) have been kicked out (I didn’t do it), but were easy and quick to reinstall. LM20 is quick, light, and, as always, beautiful.
Many thanks to Clem and the team !
Back soon for the feedback of two others upgrades. (cross fingers)
The tutorial was moved to the user guide. A new section was added to purge PPAs in the preparation step. Another section was added for troubleshooting and to bring solutions to frequently asked questions.
Upgraded! smooth upgrade. thanks to Clem and all LM’s team
Some way through my upgrade, I got this>>
The following additional packages will be installed:
libc-ares2 libgamemode0 libgamemodeauto0 python3-grpcio
The following NEW packages will be installed:
adwaita-icon-theme-full alsa-topology-conf alsa-ucm-conf celluloid cryptsetup-initramfs cryptsetup-run gamemode libc-ares2 libgamemode0 libgamemodeauto0 mesa-vdpau-drivers mesa-vulkan-drivers python3-grpcio warpinator
0 upgraded, 14 newly installed, 0 to remove and 2 not upgraded.
Need to get 14,2 MB/14,2 MB of archives.
After this operation, 80,8 MB of additional disk space will be used.
Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 adwaita-icon-theme-full all 3.36.1-2ubuntu0.20.04.2
Err:2 http://packages.linuxmint.com ulyana/import amd64 celluloid amd64 0.19-linuxmint1+ulyana
Could not resolve ‘packages.linuxmint.com’
.
.
.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/a/adwaita-icon-theme/adwaita-icon-theme-full_3.36.1-2ubuntu0.20.04.2_all.deb Could not resolve ‘archive.ubuntu.com’
.
.
.
>>
I believe the machine lost contact with the internet. Certainly, on exit from the procedure, I could not access the internet. My internet access is through WiFi: Bus 002 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
via a Vodafone WiFi hotspot.
Can you advise me how to progress, please.
Thanks for the upgrade path and the instructions! My experience and feedback: I’ve just completed the upgrade. No special issues, however, as upgrade took MANY HOURS, would have preferred a section above describing preferred scenarios. Time and energy considerations would make a clean install preferable! Next, the scenario’s described above do not cover some of the paths during upgrade that might be better to shed some light upon. I am pretty unexperienced to might have misunderstood: As i had the «Swap» in encrypted mode (as i tend to choose «encrypted» when possible as a principle), in the «pre-run» as i understood a non-encrypted one was created. However, during the real upgrade, i saw several mentions of «swap missing» which in turn might be the reason the upgrade took so long.. Hopefully this feedback helps to create a better and more fluid instruction & upgrade for others! 😉 wkr, Frans
$ sudo apt-get —fix-broken install
[sudo] contraseña para ricardo:
Leyendo lista de paquetes. Hecho
Creando árbol de dependencias
Leyendo la información de estado. Hecho
Corrigiendo dependencias. falló.
Los siguientes paquetes tienen dependencias incumplidas:
aptitude : Depende: libapt-pkg5.0 (>= 1.1) pero no es instalable
blueman : Depende: python3 ( = 1.1
exp9) pero no es instalable
libapt-pkg-perl : Depende: perlapi-5.26.1 pero no es instalable
Depende: libapt-pkg5.0 (>= 1.1
exp9) pero no es instalable
libcairo-perl : Depende: perlapi-5.26.1 pero no es instalable
libcommon-sense-perl : Depende: perlapi-5.26.1 pero no es instalable
Depende: perl ( = 1.1
exp9) pero no es instalable
libfcgi-perl : Depende: perlapi-5.26.0 pero no es instalable
libfile-fcntllock-perl : Depende: perlapi-5.26.0 pero no es instalable
libglib-perl : Depende: perlapi-5.26.0 pero no es instalable
libgtk2-perl : Depende: perlapi-5.26.0 pero no es instalable
libhtml-parser-perl : Depende: perlapi-5.26.0 pero no es instalable
libimage-magick-q16-perl : Depende: perlapi-5.26.1 pero no es instalable
libio-pty-perl : Depende: perlapi-5.26.0 pero no es instalable
liblist-moreutils-perl : Depende: perlapi-5.26.0 pero no es instalable
liblocale-gettext-perl : PreDepende: perlapi-5.26.0 pero no es instalable
libnet-dbus-perl : Depende: perlapi-5.26.0 pero no es instalable
libnet-libidn-perl : Depende: perlapi-5.26.0 pero no es instalable
libpango-perl : Depende: perlapi-5.26.0 pero no es instalable
libperlio-gzip-perl : Depende: perlapi-5.26.0 pero no es instalable
libqt4-declarative : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-designer : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-designer:i386 : Depende: libqt4-script:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
Depende: libqtgui4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-help : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-network : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-network:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
Depende: libqtdbus4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-opengl : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-opengl:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
Depende: libqtgui4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-qt3support : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-qt3support:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
Depende: libqtgui4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-script : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-scripttools : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-sql : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-sql:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-sql-sqlite : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-svg : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-test : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-test:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-xml : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-xml:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-xmlpatterns : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqt4-xmlpatterns:i386 : Depende: libqtcore4:i386 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqtassistantclient4 : Depende: libqtcore4 (>= 4:4.8.1) pero no es instalable
libqtdbus4 : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libqtexengine1 : Depende: libqtcore4 (>= 4:4.7.0
beta1) pero no es instalable
libqtgui4 : Depende: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) pero no es instalable
libsocket6-perl : Depende: perlapi-5.26.0 pero no es instalable
libsub-name-perl : Depende: perlapi-5.26.0 pero no es instalable
libtext-charwidth-perl : Depende: perlapi-5.26.0 pero no es instalable
libtext-iconv-perl : Depende: perlapi-5.26.0 pero no es instalable
libuuid-perl : Depende: perlapi-5.26.0 pero no es instalable
libxml-parser-perl : Depende: perlapi-5.26.0 pero no es instalable
onboard : Depende: python3 ( = 4:4.8.0-1
) pero no es instalable
python3-apt : Depende: python3 ( = 1.6.5
) pero no es instalable
python3-brlapi : Depende: python3 ( = 1.1
exp9) pero no es instalable
E: Error, pkgProblemResolver::Resolve generó cortes, esto puede deberse a paquetes retenidos.
E: No se pueden corregir las dependencias
ricardo@ricardo-Ideapad-Z460:
I type apt install mintupgrade
how come it happened like this
Abai: 1 http://mirrors.evowise.com/linuxmint/packages tricia / main amd64 mintupgrade all 2020.07.09.2
Err: 1 http://mirrors.evowise.com/linuxmint/packages tricia / main amd64 mintupgrade all 2020.07.09.2
404 Not Found [IP: 104.22.5.179 80]
E: Failed to retrieve http://mirrors.evowise.com/linuxmint/packages/pool/main/m/mintupgrade/mintupgrade_2020.07.09.2_all.deb 404 Not Found [IP: 104.22.5.179 80]
E: Failed to retrieve some files, maybe want to run apt-get update or try using the — fix-missing option?
I found the upgrade somewhat a problem. After 2 hours of upgrade I realised it was repeating the upgrade. As this machine only drives my TV systems I decided to stop it and do a full install which takes far less time. Found that Mint 20 was there on reboot, so I ran the Foreign downgrades. So many of them. Scary what was going to happen as Google Chrome was my only addition to the mint 19.3 system. Time will tell if everything works or not. Overall it was NOT a smooth transition like mint 18 to 19 was.
I expanded my original comment into a forum post:
https://forums.linuxmint.com/viewtopic.php?f=18&t=324421
Sorry, too buggy and too dangerous for main computer install.
Step «D6. Delete foreign packages» is VERY dangerous. I installed on a backup computer. A VERY long list of packages were presented as «foreign». Trying to delete them, I got notifications that some are essential to the operating system and cannot be deleted. Meanwhile, trying to bypass these «essential» packages, and trying to remove others from the «foreign» list, I have now broken my system’s ability to remove old kernels.
1) This D6. Delete foreign packages step is dangerous.
2) I need to hear a MUCH BETTER explanation of the meaning of this «foreign packages»‘; what they are, why it is that I have to delete them, why are ESSENTIAL packages like «mountall», and why are my «third-party installations» are showing up in the list JUST BECAUSE the upgrader removed all third-party PPAs I have previously edited. Why is that I am being told to remove perfectly good third-party software. Why does the installer have to wipe out third-party PPA sources I have added during previous software installations? IS THERE A STEP MISSING TO RE-ADD PPA’s THAT UPGRADE UTILITY HAS DELETED, MANUALLY, BEFORE PROCEEDING TO THIS STEP.
3) As already demonstrated, I have now damaged my OS (cannot delete outdated kernel images due to a libcrypto issue). https://askubuntu.com/questions/1116133/ubuntu-18-04-libcrypto-so-1-0-0-cannot-open-shared-object-file-no-such-file-o
I DO NOT RECOMMEND THESE UPGRADE INSTRUCTIONS AT THIS TIME. TOO DANGEROUS AND TOO INDISCRIMINATE, WIPING OUT PERFECTLY GOOD SOFTWARE THAT I HAVE MANUALLY INSTALLED PREVIOUSLY FROM THIRD-PARTY PPA’s.
I did it, it worked OK
Thanks a lot
Hi Clem and Linux Mint Team. The upgrade was a success. So far so good. Thank you so much for the support.
I tried again, and this time got all the way through the mintupgrade download. To be clear, I followed all the instructions precisely, having updated everything beforehand, pointing to the default software sources, etc, and there was no issue when I ran mintupgrade check. But . on mintupgrade upgrade (having dropped into console as suggested, the process terminated with an error message as follows:
+Disabling screensaver and power management
cinnamon-screensaver: no process found
light-locker: no process found
Traceback (most recent call last):
File «/usr/bin/mintupgrade», line 636, in
upgrader.upgrade()
File «/usr/bin/mintupgrade», line 434, in upgrade
current_desktop = os.environ[«XDG_CURRENT_DESKTOP»].lower()
File «/usr/lib/python3.6/os.py», line 668, in _getitem_
raise KeyError(key) from None
KeyError: ‘XDG_CURRENT_DESKTOP’
I’ve spent way too much time trying to troubleshoot this. Unless Clem or someone can explain what the problem is, I’m just going to have to wait for this upgrade.
Nevermind. I just needed to upgrade one of my packages. now it worked
I have just done the upgrade without difficulty. All seems well. The only issue is there may be a problem with Evolution email. It works normally with my gmail address but it will not now connect to my principal imap address. The error message is «error performing TLS handshake. A packet with illegal or unsupported version was received». Reinstalling Evolution did not fix it. The Mailspring client is working perfectly with all my email addresses but I prefer Evolution so any suggestions will be welcome.
(Also posted to the Linux Forum).
When I do the command: «apt install mintupgrade», it give this output:
«Err:1 http://packages.linuxmint.com tricia/main amd64 mintupgrade all 2020.07.09
404 Not Found [IP: 68.235.39.11 80]
E: Failed to fetch http://packages.linuxmint.com/pool/main/m/mintupgrade/mintupgrade_2020.07.09_all.deb 404 Not Found [IP: 68.235.39.11 80]
E: Unable to fetch some archives, maybe run apt-get update or try with —fix-missing?»
What am I supposed to do?
I seriously hope you’re not going to say this upgrade is just for Cinnamon, after failing to mention it anywhere on this tutorial page .
On the mintupgrade download stage, after a very long download, I get this error message. (I don’t really want the cinnamon desktop since I use Mate, but I don’t want to proceed to upgrade with this error):
E: Failed to fetch http://packages.linuxmint.com/pool/backport/c/cinnamon-desktop/cinnamon-desktop-data_4.6.2+ulyana_all.deb 404 Not Found [IP: 208.77.20.11 80]
E: Failed to fetch http://packages.linuxmint.com/pool/backport/c/cinnamon-desktop/libcinnamon-desktop4_4.6.2+ulyana_amd64.deb 404 Not Found [IP: 208.77.20.11 80]
E: Some files failed to download
+ Restoring your backed up APT sources.
Upgrade from LinuxMint Mate 19.3 to 20 took a while, but worked fine. I had to reconfigure Compiz. Unfortunately, I was not able to get Screenlets running again. I would like to display a monthly calendar sheet and a clock on my desktop, but could not figure out an alternative, so I switched back to 19.3 (also without problems), using timeshift.
Some progress. I managed to downgrade/remove foreign packages by doing each one singly. So far as I can tell everything is up to date and working. Time will tell.
I hit another problem with a headless upgrade, it wanted to halt postgresql before upgrading libc6 but provided no safe way for me to stop the service (I could not ssh into the box). Nearly borked the upgrade with that one!
It was all going so well then kaboom. Upgrade step ran for 30 minutes then a black screen and the PC dead.
Powered it up and up came Mint 20 but on trying to resume/fix the install with
$ sudo dpkg —configure -a
I ended up with an error which suggested I ran
$ apt —fix-broken install
I tried that and it just printed the apt usage message.
Now stuck.
If I try the Downgrade foreign packages (or remove) I get the same error message.
It seems to be related to python dependencies(see below)
# apt-get install linux-generic-hwe-18.04-edge=5.4.0.40.43
Reading package lists. Done
Building dependency tree
Reading state information. Done
You might want to run ‘apt —fix-broken install’ to correct these.
The following packages have unmet dependencies.
python-apsw : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7
)
python-certifi : Depends: python ( = 2.7)
Depends: python:any (>= 2.6.6-7
)
python-chardet : Depends: python:any ( = 2.7.5-5
)
python-crypto : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-dateutil : Depends: python:any ( = 2.7.5-5
)
python-dbus : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-dnspython : Depends: python:any ( = 2.7.5-5
)
python-gobject-2 : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-idna : Depends: python:any ( = 2.7.5-5
)
python-libxml2 : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-lxml : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-markdown : Depends: python:any ( = 2.7.5-5
)
python-netifaces : Depends: python ( = 2.7)
python-numpy : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-pil : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-pkg-resources : Depends: python:any ( = 2.7.5-5
)
python-psutil : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-pyparsing : Depends: python:any ( = 2.7.5-5
)
python-setproctitle : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7
)
python-sip : Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-six : Depends: python:any ( = 2.7.5-5
)
python-tk : Depends: python (>= 2.7)
Depends: python ( = 2.7
)
Depends: python:any ( = 2.7.5-5
)
python-wxversion : Depends: python:any ( = 2.7.5-5
)
python-xdg : Depends: python ( = 2.7)
Depends: python:any (>= 2.6.6-7
)
python-xlib : Depends: python:any ( = 2.7.5-5
)
xed-common : Depends: python
E: Unmet dependencies. Try ‘apt —fix-broken install’ with no packages (or specify a solution).
#
# apt —fix-broken install
apt
Usage: apt command [options]
apt help command [options]
Commands:
add-repository — Add entries to apt sources.list
autoclean — Erase old downloaded archive files
autoremove — Remove automatically all unused packages
build — Build binary or source packages from sources
build-dep — Configure build-dependencies for source packages
changelog — View a package’s changelog
check — Verify that there are no broken dependencies
clean — Erase downloaded archive files
contains — List packages containing a file
content — List files contained in a package
deb — Install a .deb package
depends — Show raw dependency information for a package
dist-upgrade — Upgrade the system by removing/installing/upgrading packages
download — Download the .deb file for a package
edit-sources — Edit /etc/apt/sources.list with your preferred text editor
dselect-upgrade — Follow dselect selections
full-upgrade — Same as ‘dist-upgrade’
held — List all held packages
help — Show help for a command
hold — Hold a package
install — Install/upgrade packages
list — List packages based on package names
policy — Show policy settings
purge — Remove packages and their configuration files
recommends — List missing recommended packages for a particular package
rdepends — Show reverse dependency information for a package
reinstall — Download and (possibly) reinstall a currently installed package
remove — Remove packages
search — Search for a package by name and/or expression
show — Display detailed information about a package
showhold — Same as ‘held’
showsrc — Display all the source package records that match the given package name
source — Download source archives
sources — Same as ‘edit-sources’
unhold — Unhold a package
update — Download lists of new/upgradable packages
upgrade — Perform a safe upgrade
version — Show the installed version of a package
Error during upgrade:
+ Disabling screensaver and power management.
cinnamon-screensaver: no process found
mate-screensaver: no process found
light-locker: no process found
Traceback (most recent call last):
File «/usr/bin/mintupgrade», line 635, in
upgrader.upgrade()
File «/usr/bin/mintupgrade», line 433, in upgrade
current_desktop = os.environ[«XDG_CURRENT_DESKTOP»].lower()
File «/usr/lib/python3.6/os.py», line 669, in __getitem__
raise KeyError(key) from None
KeyError: ‘XDG_CURRENT_DESKTOP’
When running mintupgrade check I get
Calculating upgrade. Error!
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.
libgirepository-1.0-1 : Breaks: python-gi (
upgrader.check()
File «/usr/bin/mintupgrade», line 398, in check
cache.upgrade(True)
File «/usr/lib/python3/dist-packages/apt/cache.py», line 385, in upgrade
self._depcache.upgrade(dist_upgrade)
apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Error in sys.excepthook:
Traceback (most recent call last):
File «/usr/lib/python3/dist-packages/apport_python_hook.py», line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), ‘wb’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/var/crash/_usr_bin_mintupgrade.1000.crash’
Original exception was:
Traceback (most recent call last):
File «/usr/bin/mintupgrade», line 626, in
upgrader.check()
File «/usr/bin/mintupgrade», line 398, in check
cache.upgrade(True)
File «/usr/lib/python3/dist-packages/apt/cache.py», line 385, in upgrade
self._depcache.upgrade(dist_upgrade)
apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
У меня проверка через mintupgrade check проходит без ошибок, а во время установки ругается на то, что не может запустить xdm.service, и просит запустить его вручную через: /etc/init.d/xdm start. Но ни в ручную, ни через systemctl start xdm.service ничего не запускается. Вывод команды прилагаю:
sudo systemctl status xdm.service
● xdm.service — X-Window Display Manager
Loaded: loaded (/lib/systemd/system/xdm.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-07-10 14:27:56 MSK; 12min ago
июл 10 14:27:56 WS-IT-I8086 systemd[1]: Starting X-Window Display Manager.
июл 10 14:27:56 WS-IT-I8086 systemd[1]: xdm.service: Control process exited, code=exited status=1
июл 10 14:27:56 WS-IT-I8086 systemd[1]: xdm.service: Failed with result ‘exit-code’.
июл 10 14:27:56 WS-IT-I8086 systemd[1]: Failed to start X-Window Display Manager.
i8086@WS-IT-I8086
$ sudo /etc/init.d/xdm start
Starting xdm (via systemctl): xdm.serviceJob for xdm.service failed because the control process exited with error code.
See «systemctl status xdm.service» and «journalctl -xe» for details.
failed!
i8086@WS-IT-I8086
$ sudo systemctl start xdm.service
Job for xdm.service failed because the control process exited with error code.
See «systemctl status xdm.service» and «journalctl -xe» for details.
i8086@WS-IT-I8086
$ journalctl -xe
июл 10 14:41:56 WS-IT-I8086 sudo[10876]: pam_unix(sudo:session): session closed for user root
июл 10 14:41:56 WS-IT-I8086 sudo[11083]: i8086 : TTY=pts/2 ; PWD=/home/i8086 ; USER=root ; COMMAND=/bin/systemctl start xdm.service
июл 10 14:41:56 WS-IT-I8086 sudo[11083]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 10 14:41:56 WS-IT-I8086 systemd[1]: Starting X-Window Display Manager.
— Subject: Начинается запуск юнита xdm.service
— Defined-By: systemd
— Support: http://www.ubuntu.com/support
—
— Начат процесс запуска юнита xdm.service.
июл 10 14:41:56 WS-IT-I8086 systemd[1]: xdm.service: Control process exited, code=exited status=1
июл 10 14:41:56 WS-IT-I8086 systemd[1]: xdm.service: Failed with result ‘exit-code’.
июл 10 14:41:56 WS-IT-I8086 systemd[1]: Failed to start X-Window Display Manager.
— Subject: Ошибка юнита xdm.service
— Defined-By: systemd
— Support: http://www.ubuntu.com/support
—
— Произошел сбой юнита xdm.service.
—
— Результат: RESULT.
июл 10 14:41:56 WS-IT-I8086 sudo[11083]: pam_unix(sudo:session): session closed for user root
июл 10 14:41:58 WS-IT-I8086 sudo[11974]: i8086 : TTY=unknown ; PWD=/home/i8086 ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
июл 10 14:41:58 WS-IT-I8086 sudo[11974]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 10 14:41:58 WS-IT-I8086 sudo[11974]: pam_unix(sudo:session): session closed for user root
. skipping.
июл 10 14:41:55 WS-IT-I8086 sudo[10876]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 10 14:41:55 WS-IT-I8086 sudo[10876]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 10 14:41:56 WS-IT-I8086 sudo[10876]: pam_unix(sudo:session): session closed for user root
июл 10 14:41:56 WS-IT-I8086 sudo[11083]: i8086 : TTY=pts/2 ; PWD=/home/i8086 ; USER=root ; COMMAND=/bin/systemctl start xdm.service
июл 10 14:41:56 WS-IT-I8086 sudo[11083]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 10 14:41:56 WS-IT-I8086 systemd[1]: Starting X-Window Display Manager.
— Subject: Начинается запуск юнита xdm.service
— Defined-By: systemd
— Support: http://www.ubuntu.com/support
—
— Начат процесс запуска юнита xdm.service.
июл 10 14:41:56 WS-IT-I8086 systemd[1]: xdm.service: Control process exited, code=exited status=1
июл 10 14:41:56 WS-IT-I8086 systemd[1]: xdm.service: Failed with result ‘exit-code’.
июл 10 14:41:56 WS-IT-I8086 systemd[1]: Failed to start X-Window Display Manager.
— Subject: Ошибка юнита xdm.service
— Defined-By: systemd
— Support: http://www.ubuntu.com/support
—
— Произошел сбой юнита xdm.service.
—
— Результат: RESULT.
июл 10 14:41:56 WS-IT-I8086 sudo[11083]: pam_unix(sudo:session): session closed for user root
июл 10 14:41:58 WS-IT-I8086 sudo[11974]: i8086 : TTY=unknown ; PWD=/home/i8086 ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
июл 10 14:41:58 WS-IT-I8086 sudo[11974]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 10 14:41:58 WS-IT-I8086 sudo[11974]: pam_unix(sudo:session): session closed for user root
Подскажите в чём может быть причина ошибки?
Too many errors. I reverted back to 19.3 with Timeshift.
Jul 09 22:45:30 john kernel: Initramfs unpacking failed: Decoding failed
Jul 09 22:45:30 john kernel: tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80
Jul 09 22:45:30 john kernel: tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80
Jul 09 22:45:32 john bluetoothd[1223]: Failed to set mode: Blocked through rfkill (0x12)
Jul 09 22:45:42 john lightdm[2048]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 09 22:45:42 john lightdm[2048]: PAM adding faulty module: pam_kwallet.so
Jul 09 22:45:42 john lightdm[2048]: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jul 09 22:45:42 john lightdm[2048]: PAM adding faulty module: pam_kwallet5.so
Jul 09 22:45:43 john lightdm[2145]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jul 09 22:45:43 john lightdm[2145]: PAM adding faulty module: pam_kwallet.so
Jul 09 22:45:43 john lightdm[2145]: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jul 09 22:45:43 john lightdm[2145]: PAM adding faulty module: pam_kwallet5.so
Jul 09 22:45:52 john lightdm[2145]: gkr-pam: unable to locate daemon control file
Checking the upgrade to Ulyana from 19.3 Mate, appears lots of errors:
+ Simulating an upgrade.
Leyendo lista de paquetes. Hecho
Creando árbol de dependencias
Leyendo la información de estado. Hecho
Calculando la actualización. ¡Error!
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:
Los siguientes paquetes tienen dependencias incumplidas:
libgirepository-1.0-1 : Rompe: python-gi (
upgrader.check()
File «/usr/bin/mintupgrade», line 398, in check
cache.upgrade(True)
File «/usr/lib/python3/dist-packages/apt/cache.py», line 385, in upgrade
self._depcache.upgrade(dist_upgrade)
apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Error in sys.excepthook:
Traceback (most recent call last):
File «/usr/lib/python3/dist-packages/apport_python_hook.py», line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), ‘wb’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/var/crash/_usr_bin_mintupgrade.1000.crash’
Original exception was:
Traceback (most recent call last):
File «/usr/bin/mintupgrade», line 626, in
upgrader.check()
File «/usr/bin/mintupgrade», line 398, in check
cache.upgrade(True)
File «/usr/lib/python3/dist-packages/apt/cache.py», line 385, in upgrade
self._depcache.upgrade(dist_upgrade)
apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
When I check all of the foreign packages installed (from «Menu -> Administration -> Software Sources -> Maintenance -> Remove Foreign Packages») I see there are a LOT of them. I’m able to recognize some of these packages, but I’m not sure about most of them.
So,
— What are the implications of not doing this step?
— What if I remove accidentally a package that is needed by some app later on? Can I recover it? (I guess so, but I’m not sure if it is safe to do so)
— What may be the best way to approach this step?
PS: I asked this here: https://unix.stackexchange.com/q/597716/421977
Hi,
got an Error, the mintupgrade script crashed and i had to do then «Source Rollback» manuel via «mintupgrade restore-source»
Here the Error ( sorry in german )
+ Simulating an upgrade.
Paketlisten werden gelesen. Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen. Fertig
Paketaktualisierung (Upgrade) wird berechnet. Fehler!
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
libgirepository-1.0-1 : Beschädigt: python-gi (
upgrader.check()
File «/usr/bin/mintupgrade», line 398, in check
cache.upgrade(True)
File «/usr/lib/python3/dist-packages/apt/cache.py», line 385, in upgrade
self._depcache.upgrade(dist_upgrade)
apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Error in sys.excepthook:
Traceback (most recent call last):
File «/usr/lib/python3/dist-packages/apport_python_hook.py», line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), ‘wb’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/var/crash/_usr_bin_mintupgrade.1000.crash’
Original exception was:
Traceback (most recent call last):
File «/usr/bin/mintupgrade», line 626, in
upgrader.check()
File «/usr/bin/mintupgrade», line 398, in check
cache.upgrade(True)
File «/usr/lib/python3/dist-packages/apt/cache.py», line 385, in upgrade
self._depcache.upgrade(dist_upgrade)
apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
timo@Timo-Mint:
Works perfectly. My mint version 19.3 was installed a few months ago, that could make the difference.
Источник