Processing triggers for libc-bin (2.28-0ubuntu1) … /sbin/ldconfig.real: /usr/lib/ is not a symbolic link

Can someone help me with this problem i have been facing this problem since i have installed libgraph-1.0.2 in my Ubuntu 18.10. Actually i was trying to use graphics.h library in my program so while installing this libgraph for letting the graphic library work with my c++ using SDL.

it would be great if some one would help me through this i am trying to solve this problem from last 2 days. i have searched the whole internet to sort out this problem. and yeah this is my first time on askubuntu.

i am facing this problem in many different installations in ubuntu like the below one when i was installing OpenGL

b_cass_@BCasS:~$ sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

Reading package lists… Done Building dependency tree Reading state information… Done libglu1-mesa-dev is already the newest version (9.0.0-2.1build1). libglu1-mesa-dev set to manually installed. The following packages were automatically installed and are no longer required: libhdb9-heimdal libkadm5clnt7-heimdal libkadm5srv8-heimdal libkafs0-heimdal libotp0-heimdal libsl0-heimdal Use ‘sudo apt autoremove’ to remove them. The following additional packages will be installed: freeglut3 libegl1-mesa-dev libgl1-mesa-dev The following NEW packages will be installed: freeglut3 freeglut3-dev The following packages will be upgraded: libegl1-mesa-dev libgl1-mesa-dev mesa-common-dev 3 upgraded, 2 newly installed, 0 to remove and 88 not upgraded. Need to get 927 kB of archives. After this operation, 1,078 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 amd64 libgl1-mesa-dev amd64 18.2.8-0ubuntu0~18.10.2pop1 [54.2 kB] Get:2 cosmic/universe amd64 freeglut3 amd64 2.8.1-3 [73.6 kB] Get:3 cosmic/universe amd64 freeglut3-dev amd64 2.8.1-3 [124 kB] Get:4 amd64 mesa-common-dev amd64 18.2.8-0ubuntu0~18.10.2pop1 [608 kB] Get:5 amd64 libegl1-mesa-dev amd64 18.2.8-0ubuntu0~18.10.2pop1 [67.6 kB] Fetched 927 kB in 9s (104 kB/s) Selecting previously unselected package freeglut3:amd64. (Reading database … 429037 files and directories currently installed.) Preparing to unpack …/freeglut3_2.8.1-3_amd64.deb … Unpacking freeglut3:amd64 (2.8.1-3) … Preparing to unpack …/libgl1-mesa-dev_18.2.8-0ubuntu0~18.10.2pop1_amd64.deb … Unpacking libgl1-mesa-dev:amd64 (18.2.8-0ubuntu0~18.10.2pop1) over (18.2.8-0ubuntu0~18.10.2) … Preparing to unpack …/mesa-common-dev_18.2.8-0ubuntu0~18.10.2pop1_amd64.deb … Unpacking mesa-common-dev:amd64 (18.2.8-0ubuntu0~18.10.2pop1) over (18.2.8-0ubuntu0~18.10.2) … Preparing to unpack …/libegl1-mesa-dev_18.2.8-0ubuntu0~18.10.2pop1_amd64.deb … Unpacking libegl1-mesa-dev:amd64 (18.2.8-0ubuntu0~18.10.2pop1) over (18.2.8-0ubuntu0~18.10.2) … Selecting previously unselected package freeglut3-dev:amd64. Preparing to unpack …/freeglut3-dev_2.8.1-3_amd64.deb … Unpacking freeglut3-dev:amd64 (2.8.1-3) … Setting up freeglut3:amd64 (2.8.1-3) … Setting up mesa-common-dev:amd64 (18.2.8-0ubuntu0~18.10.2pop1) … Setting up libgl1-mesa-dev:amd64 (18.2.8-0ubuntu0~18.10.2pop1) … Processing triggers for libc-bin (2.28-0ubuntu1) … /sbin/ldconfig.real: /usr/lib/ is not a symbolic link

Setting up libegl1-mesa-dev:amd64 (18.2.8-0ubuntu0~18.10.2pop1) … Setting up freeglut3-dev:amd64 (2.8.1-3) …

Look at those bold ones. I got this error also when i was installing opencv.please solve it.

Is it possible to change the permissions for the symbolic link?

I am trying to change the permissions for the symbolic link.

Making directory and symbolic link

As how you can see in the image, the soft link has 777 permissions, but i would like to change that.

I tried to change that by:

  1. chmod 755 someLink – but this changes linked directory (someDir) permission.
  2. chmod -h 755 someLink – this brings eroor chmod: invalid option --'h'

Is there a way how to change symbolic link permissions? I am on Ubuntu 18.04

Many thanks in advance

How do you create a symbolic folder link in quick access for a non admin user?

Some colleagues of mine have been having problems renaming quick access folders on a Windows 10 machine.

They want to rename just the quick access folder whilst maintaining the network folder name it links too.

e.g. Network drive\folder

quick access comes up as “folder” in this scenario. However for example they rename the “folder” in quick access to “johns folder” but it causes the folder on the network to be renamed as well to “johns folder“. So both now quick access and the network folder are renamed to “johns folder“. Is there a way to isolate this just to rename the quick access link.

Furthermore this needs to be done without the restriction of Admin privileges.

I have tried two different pieces of software “symbolic link creator” and “Linkmaker“. Both good pieces of software for symbolic linking folders, however they need admin privileges to run. If anyone knows any software or ways that doesn’t involve the use of admin privileges that would be much appreciated.

Debugging how symbolic link is getting broken in ubuntu 16.04?

I have a symbolic link of the form

ubuntu@platform1:~$   ls -lrt total 28 drwxr-xr-x  4 ubuntu ubuntu 4096 Mar  2 15:02 deploy lrwxrwxrwx  1 ubuntu ubuntu   14 May 25 18:27 logs -> /var/log/arkin 

Disk layout

ubuntu@platform1:~$   df -h Filesystem                    Size  Used Avail Use% Mounted on /dev/mapper/vg-var            853G  3.7G  806G   1% /var /dev/mapper/vg-var+log         49G  1.1G   45G   3% /var/log /dev/mapper/vg-var+log+audit   20G   60M   19G   1% /var/log/audit /dev/mapper/vg-home            30G  6.5G   22G  24% /home 

But many times I am observing that symbolic link is changed to

drwxr-xr-x  6 ubuntu ubuntu 4096 May 31 08:41 logs 

Can someone let me know if there is a way to enable audit logs on the folder /home/ubuntu/logs so that I can get some idea which operation is breaking the symbolic link and creating a new /home/ubuntu/logs or some other ways I can debug this problem?

  • Filesystem – ext4
  • OS – Ubuntu 16.04

why my script in /etc/init.d with K symbolic link in rc0.d and rc6.d and S symbolic link in rc5.d is not working on shutdown?

I’m writing a script which I want to run before every shutdown of my ubuntu system. I have placed my script named myscript inside /etc/init.d folder and then created symbolic links in rc0.d and rc6.d as K01myscript and S01myscript in rc5.d. But the problem is that the script is not running at all.

How to speed up the calculation of a multi-dimension matrix involving symbolic integral?

The following program succeeds in getting matrix CC, but it takes time badly, especially in the case varNumber becomes larger just as the following varNumber = 35. Who can speed up the process of calculation? Thanks!

ClearAll["Global`*"]; varNumber = 35; end = Infinity; s1 = 112*^9; s2 = 25*^9; s3 = 15.1; s4 = 5.5*10^-9;  a[m_] := Exp[-x/2]*LaguerreL[m, x]; b[m_, i_, j_, l_] := Integrate[a[m]*x^i*D[a[l], {x, j}], {x, 0, end}];  d[m_, i_, j_, l_] :=   Integrate[   a[m]*x^i*D[     a[l], {x, j}]*(DiracDelta[x] -       DiracDelta[x - end]), {x, -Infinity, Infinity}];  c[1, 1][m_, l_] := s2*d[m, 0, 1, l] + s2*b[m, 0, 2, l]; c[1, 2][m_, l_] := 0; c[1, 3][m_, l_] := 0; c[2, 1][m_, l_] := 0; c[2, 2][m_, l_] := s1*d[m, 0, 1, l] + s1*b[m, 0, 2, l]; c[2, 3][m_, l_] := s3*d[m, 0, 1, l] + s3*b[m, 0, 2, l]; c[3, 1][m_, l_] := 0; c[3, 2][m_, l_] := s3*d[m, 0, 1, l] + s3*b[m, 0, 2, l]; c[3, 3][m_, l_] := -s4*d[m, 0, 1, l] - s4*b[m, 0, 2, l];  CC = ArrayFlatten@     Table[c[m, n][i, j], {m, 3}, {n, 3}, {i, 0, varNumber - 1}, {j, 0,        varNumber - 1}]; // AbsoluteTiming {2283.69, Null} 

Why have symbolic links between files in folders at same depth?

I noticed that on OS X, the /usr/local/Cellar folder contains binaries installed using Homebrew, and that /usr/local/opt has symbolic links to a bunch of those binaries. I haven’t used symbolic links much, but as I understand it, the purpose of them is to create a link in a convenient location to a file/folder that acts as a copy of that file/folder, without having to move that file/folder from its original location.

So my questions are:

1) Am I correct in my understanding of symbolic links there? ^^

2) If so ^^, why would you create symbolic links in one folder (/usr/local/opt) to binaries in another folder (/usr/local/Cellar) that is at a similar location/depth in the file structure? Under what circumstances would you use these symbolic links where you couldn’t just use the binaries?


Matlab symbolic toolbox much slower than MuPAD I thought it relies on

Basic operations on polynomials seem to be extremely slow in Matlab. See the following code:

syms x y p = 1 + x + y + x*y tic for i=1:10000 coeffs(p); end toc tic for i=1:10000 q=expand(p*p); end toc 

On my computer it yields: Elapsed time is 9.021812 seconds. Elapsed time is 31.494963 seconds.

In a MuPAD notebook (type “mupad” in the command window of Matlab) the same thing takes about a second:

p := 1 + x + y + x*y for i from 1 to 10000 do coeff(p);monomials(p); end_for for i from 1 to 10000 do q:=expand(p*p); end_for 

On the other hand, it seems like MuPAD will be shut down in future versions of Matlab. Here are my questions:

(1) Doesn’t the Matlab symbolic toolbox use the MuPAD symbolic engine to do basic polynomial operations?

(2) Why Matlab symbolic toolbox so much slower than MuPAD? If MuPAD is shut down, I think will that I will never use Matlab for my purposes again. I use it for trying to solve polynomial optimization problems using semidefinite programs.

File Dialog box does not see symbolic links

I have my “Documents” folder linked to a directory on a different hard drive.

Freemind cannot see/access/or follow the link from its file open/save dialog boxes. If I filter the dialog box on “all files”, the link(directory) shows up as a file, but it is not accessible. I even tried manually typing the path, but I get an error that the attempt to save failed.

On the other hand, that link works just fine with with Freeplane. It is visible and saving, opening, navigating, etc. all function normally.

Glancing over this, it would seem like a software(Freemind) problem, but I am almost positive I have seen something like this before as related to something else in the OS. I just cannot remember what it was related to and all the searches I have done have been useless because of the commonality of the key words.

Any thoughts???

ubuntu 18.04