Broken dependencies - linux

I deleted contents of /opt , and now, spotify and google chrome won't work because I deleted their dirs. If I try to remove them, fix them, upgrade them or anything, I get this:
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
enter code heredpkg: error processing package google-chrome-stable (--remove):
subprocess installed pre-removal script returned error status 1
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
A part of this is translated, but only a small part.

I have tested this on my machine by deleting my /opt folder and then reviving google-chrome. So i know it works. Kindly follow the following steps in order to revive your google-chrome:
Download the google chrome debian file from this link according to your OS.
After downloading it open a terminal windows in the location of the debian file and run the following command to re-install google-chrome
sudo dpkg -i yourgooglechromedebianfile.deb
Your google-chrome is up and running again. :)

Related

Problem with DB2 Fixpack 11.1 Fp5 installation

I tried to install the DB2 V11.1 FP5 on a SLES-12-SP4 machine. So far I
downloaded the universal package
extracted the universal package
called the command "./installFixPack -b /opt/ibm/db2/V11.1/ -p /opt/ibm/db2/fp5/" as root user
But the installFixPack stopps working sometimes at step 44 or 47 or also step 50 of 73 without any clear error message. In the log file I find a message like
"ERROR: The install path "/opt/ibm/db2/fp5" is invalid. Specify a
valid install path.
ERROR: DBI20105E An error occurred while installing the following
file set: "DB2_PRODUCT_MESSAGES_FR_11.1.4.5_linuxamd64_x86_64".
Because these files were not successfully installed, functionality
that depends on these files might not work as expected.
Rolling back what has been installed"
Any hint what I'm doing wrong?
Thanks so much for reading so far
best regards
Thomas Graf
./installFixPack -b is to patch an aleady installed DB2 HOME cf: pass from FP4 To FP5.
if you want to install the FP5 into a new path use db2setup (or ./db2setup -r for silent install)
you should add -l /var/tmp/installlog.log -t /var/tmp/installtrace.log to the installFixPack to see exactly what is the error.
Even if you started the install with root, the app can use another user to install some files/libraries.
Do you have the same message after manually creating this folder ?

Issue with Realtek 8811CU installation script

I'm new here, so apologies if this is the wrong forum, but I do need to debug this setup script so it seems appropriate enough.
I bought a USB WiFi chip on Amazon (the Ourlink AC600) which uses the Realtek 8811CU chipset and the installation script it comes with for Linux is giving me errors right off the bat.
I tried more or less to debug but I'm simply awful with shell scripts so I didn't make too much progress. Here's the output of running chmod +x install.sh && /install.sh:
##################################################
Realtek Wi-Fi driver Auto installation script
November, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
tar: Old option 'f' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
rtl8821CU_WiFi_linux_v5.2.5.1_22211.20170517_COEX20170310-1212.rar
./install.sh: line 25: cd:
rtl8821CU_WiFi_linux_v5.2.5.1_22211.20170517_COEX20170310-1212.rar: Not a
directory
Authentication requested [root] for make clean:
make: *** No rule to make target 'clean'. Stop.
Authentication requested [root] for make driver:
make: *** No targets specified and no makefile found. Stop.
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
After I figured it was trying to decompress an archive that wasn't there (as the only archive present is a .rar) I edited the script to search for rar files instead (by changing the variable to grep .rar instead of .tar.gz on line 18 and 23). I then changed the tar extraction command to "unrar e" as it was no longer trying to extract a tar ball. When I ran it I got this output. Pastebin as it's rather long.
And while I would go ahead and check the error message, the driver package includes no such references. Evidently next time I should buy from a name brand.
Here's pastebins of the contents of install.sh and the respective Makefile the script uses, as they seem important. If anyone has any ideas, is in need of more info, or has a working driver for the 8811CU, please let me know! As I'm a total newbie when it comes to debugging driver install scripts, any pointers would be appreciated. Thanks in advance.
And I'm on Ubuntu 18.04.1 for reference.
I bought the same thing (Ourlink AC600) from Amazon too two weeks ago. I did not try the Linux driver from the CD because it's dated 2015. I also tried ourlink.us website but the driver download link lead to a dead-end. However, I managed to just install it on my ubuntu box today after some web-digging. Here are my setup/steps:
Dell core duo desktop (wired only) with Ubuntu 18.04.1 (up-to-date via: sudo apt-get update)
Plugin the AC600, turn on desktop, login.
Make sure you have required build package (via: sudo apt-get install linux-headers-generic build-essential git)
git clone https://github.com/gnab/rtl8812au (download with your wired connection. Also, I did this in ~/Downloads dir to keep my home dir clean)
cd rtl8812au
sudo make (Only see one or two warnings saying that some code will never be executed, ignore them)
sudo make install (do this only after the driver is built in step 6)
Reboot, unplug your wired network line.
Log back in and click upper-right corner down-triangle, click wireless connection and set it up.
My Ubuntu box goes wireless now. That's how I did it. Hope this helps!

Cytoscape and linux

Trying to install Cytoscape program on linux cytoscape. And I don't know how because first install button transfers me to HTML page and nothing is downloadable. (I have java installed). I tried to download tar.gz file but I am stuck, because there is no configure file and it says I have no permission for it. What should I do?
Once java 11 is installed on your computer try this:
ctrl+alt+T #open Ubuntu's console
cd /home/fulanita/Downloads #this is the directory where my computer has cytoscape.
chmod +x ./Cytoscape_3_8_1_unix.sh
./Cytoscape_3_8_1_unix.sh #3.8.1 is the last version for Ubuntu
the program will start to install
If anyone comes here in search for an answer I found a solution.
You go to you directory where you keep extracted tar.gz
with cd -Folderdestination/ you locate a folderwhere you keep a file named cytoscape.sh, and with command
sudo sh cytoscape.sh
install the program.

Installing digilent adept 2 in linux can't run djtgcfg

I recently installed digilent adept 2 on linux mint 17.3. when I try to execute djtgcfg or djtgcfg enum I receive the error
djtgcfg: error while loading shared libraries: libdabs.so.2: cannot open shared object file: No such file or directory
libdabs.so exists in the following locations on my machine
/usr/lib/digilent/adept/libdabs.so.2
/usr/local/lib64/digilent/adept/libdabs.so.2
/home/han_solo/Xilinx/14.7/ISE_DS/common/bin/lin64/digilent
/digilent.adept.runtime_2.13.1-x86_64/lib64/libdabs.so.2.11.1
/home/han_solo/Xilinx/14.7/ISE_DS/common/bin/lin/digilent
/digilent.adept.runtime_2.13.1-i686/lib/libdabs.so.2.11.1
/home/han_solo/Xilinx/14.7/ISE_DS/ISE/bin/lin64/digilent
/digilent.adept.runtime_2.13.1-x86_64/lib64/libdabs.so.2.11.1
/home/han_solo/Xilinx/14.7/ISE_DS/ISE/bin/lin/digilent
/digilent.adept.runtime_2.13.1-i686/lib/libdabs.so.2.11.1
/usr/local/lib64/digilent/adept/libdabs.so.2.11.1
/usr/lib/digilent/adept/libdabs.so.2.16.5
Each instance has read access. I also made sure that there was a copy in /etc/ld.so.conf.d and ran
$ sudo ldconfig
Go to /usr/local and search for libdabs.so.2 in /usr/local/lib or /usr/local/lib64, depending on where you installed it. Be sure to also check /usr/local/lib/digilent/adept and /usr/local/lib64/digilent/adept
If you don't find the file, you can try going to /usr/Xilinx/14.4/ISE_DS/common/bin/lin64/digilent or /usr/Xilinx/14.4/ISE_DS/common/bin/lin/digilent (32-bit or 64-bit drivers path) and running ./install_digilent.sh. After running it, try to find libdabs.so.2 again.
If you find libdabs.so.2, copy its path and then look for the file /etc/ld.so.conf. Edit this file. Paste the path you copied before in the last line of this file and save it (you can run sudo nano /etc/ld.so.conf to edit it, for example). Then, run sudo ldconfig in the terminal to update the cache. Afterwards, close your terminal and re openit. try to run djtgcfg again. It should work.
Obs.: When adding the path to ld.so.conf, you must put the whole path, without the file name. For example, if the file path is
/usr/local/lib64/digilent/adept/libdabs.so.2
then you should put /usr/local/lib64/digilent/adept/ in the last line of your /etc/ld.so.conf

Xampp on linux mint

im trying to install xampp on "new" linux mint machine.
However im quite a noob to linux since i havnt used it for that long.
When i try to run the file that ive download from the following page:
Xampp download
i get the following error two errors:
Could not display "/home/marc/Downloads/xampp-linux-x64-1.8.3-0-installer.run".
and if i click yes
Installing mime type handlers isn't supported
To search and install software which can open certain file types you have to install app-install-data.
can anyone tell me what the problem is and how i might fix it?
you need to execute the file (e.g. open a terminal, navigate to your Downloads folder and run bash xampp-linux-x64-1.8.3-0-installer.run (possibly it might need to be run otherwise, but thats my best guess)).
alternatively you might be presented to run/execute the file (instead of displaying it). if so, choose this option.
on the other hand, you might consider installing apache/php/mysql via your package manager.
what you can do is that you can use the chmod +x /your folder location/.run file that you want to install
after that you can run following command
./and your .run file name
example:-
in my case :- User#user~$su root
it will ask for password so give it
User#user~chmod +x /Downloads/xampp-linux-x64-1.8.3-0-installer.run
User#user~./xampp-linux-x64-1.8.3-0-installer.run

Resources