Try to install Tools over Linux Tweaks zsh: parse error near `\n' - zsh

I have installed Kali Linux new in my Lenovoo Laptop.
Then I try to install more Tools over Kali Tweaks.
Updating APT cache
$ sudo apt-get update
[sudo] Passwort für bratkaa44:
OK:1 http://ftp.halifax.rwth-aachen.de/kali kali-rolling InRelease
Paketlisten werden gelesen…
Installing package: kali-linux-large
$ sudo apt-get -y install kali-linux-large
E: Der dpkg-Prozess wurde unterbrochen; Sie müssen manuell »sudo dpkg --configure -a« ausführen, um das Problem zu beheben.
┏━(Something went wrong!)
┃ Couldn't install package(s) 'kali-linux-large'
Then I try to solve this with sudo dpkg --configure -a
┌──(bratkaa44㉿xXKaliLinuxXx)-[~]
└─$ sudo dpkg --congfigure -a<<
zsh: parse error near `\n'
Then he says that theres a parse error near n.
Can anyone help me? Sorry for my bad english.
Best regards
Lennart
I have read many different ways to solve this problem, but none of them fits my Problemdescription.

Related

GDAL/ogr2ogr/ogrinfo produces an invalid pointer error each time I run it

After installing ogr2ogr following the steps described here
https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html
When I run either ogr2ogr or ogrinfo, I get the following error message
free(): invalid pointer
AFTER the execution of the command. Any advice to clean that?
ogrinfo --version
GDAL 3.3.2, released 2021/09/01
free(): invalid pointer
Aborted (core dumped)
-- Edit --
I may have found some kind of tip here.
mail-archive.com/gdal-dev#lists.osgeo.org/msg36151.htmllibproj
Excerpt :
so your GDAL is linking against 2 PROJ versions libproj.so.15 and libproj.so.19. Make sure your libspatialite and libgeotiff versions are from the ubuntugis PPA, so they link gainst libproj.so.19 and no .so.15
Now I need to find a way to remove one library, without breaking my os...
There's a bug regarding linking against 2 PROJ versions libproj.so.15 and libproj.so.19
For Debian/Linux, you can do to remedy it
sudo apt purge gdal-bin -y
sudo rm -f /lib/x86_64-linux-gnu/libproj.so.15
sudo ln -s /lib/x86_64-linux-gnu/libproj.so.19 /lib/x86_64-linux-gnu/libproj.so.15
sudo apt install gdal-bin -y

Build error in OpenWRT

I followed the following steps given on the OpenWrt website to setup the OpenWrt build system.
sudo apt-get update
sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev
git clone https://github.com/openwrt/openwrt.git
git clone -b chaos_calmer git://github.com/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
I made the necessary changes in the configuration file and ran the make command. It gives the following error: make: *** [world] Error 1
Any solutions?
use following command options to know the exact error you are getting
make -j1 V=s
Sometimes due to slow internet speed(while fetching package source code for openwrt) or due to less RAM availability or wrong configuration leads to this error. Post the error message block you are getting, to understand more about the problem.
Please, follow up the following prerequisities:
https://wiki.openwrt.org/doc/howto/buildroot.exigence
Take a look especially at the table "Table of known prerequisites and their corresponding packages".
You have to install version7 of gcc and g++ so Try this:
sudo apt install gcc-7 g++-7 build-essential
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7

Getting this error on Ubuntu 16.04, Unable to locate package dotnet-dev-1.0.0-preview2

I followed the instruction from this link.
$ sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
$ sudo apt-get update
Then while I run this command:
$ sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177
I get the following error:
E: Unable to locate package dotnet-dev-1.0.0-preview2.1-003177
E: Couldn't find any package by regex 'dotnet-dev-1.0.0-preview2.1-003177'
Please help!
I just checked the repository pool and found they have changed their naming convention. In your above command the package name has been entered incorrectly:
dotnet-dev-1.0.0-preview2.1-003177
Where it should be:
dotnet-dev-1.0.0-preview2-1-003177
Notice the - instead of the .. If this is the issue then it is either a mistyped tutorial on the Microsoft site or a change in their naming scheme that hasn't been reflected everywhere.
You need to install HTTPS transport layer security for the apt-get application. The .NET Core repos are https, that is why they are not updated along with the other packages.
Simply type in the terminal
sudo apt-get install apt-transport-https
and your
sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177
should work like a charm! (at least it did for me)
I'd leave this in a comment, or upvote the other comment that mentioned this fix, but because I am new I am not allowed to do any of those things. I just wanted to confirm that that fix worked for me.
make sure you don't get any errors while updating the package list. I had to install apt-transport-https before executing sudo apt-get update.

Ubuntu 11.10 won't install Nginx due to dependecy failure (libssl1.0.0)

I keep getting this error when I ask apt-get install nginx-full
Les paquets suivants contiennent des dépendances non satisfaites :
nginx-full : Depends: libssl1.0.0 (>= 1.0.1) mais 1.0.0e-2ubuntu4.7 devra être installé
It's in French and I cannot find the exact equivalent in English but it says that a dependency is unsatisfied (?) and that 1.0.0e-2ubuntu4.7 should be installed.
I have tried apt-get update, upgrade, nothing works.
This seemed to work for me
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
sudo apt-get install ./libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
(This is downloading the package from this website.)
try
sudo apt-get install openssl
sudo apt-get install libssl-dev
to install the lib of ssl.

/usr/bin/ld: cannot find -lfreetype Why? And how can I make it work?

Exact duplicate:
/usr/bin/ld: cannot find -lfreetype qt
Hi, I'm writing a cross-platform Qt application for a graduate project.
I've been working with Qt 4.3, but just recently upgraded to 4.5.
On my Windows machine, it works great. No problems. However, on my Linux machine, things aren't quite so nice.
I'm using the Qt creator and it goes through the compiling process making all the object files. But then it makes a call to:
g++ -Wl, -rpath, (all the .o files here) -L/media/HOME/Qt-Linux-4.5/qt/lib -lQtGui -L/media/HOME/Qt-Linux-4.5/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lrt -lglib-2.0 -ldl -lpthread
It gives me the error:
/usr/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status
Now, I can locate libfreetype.so.6 and libfreetype.so.6.3.18 in my /usr/lib folders. I've tried running this inserting -L/usr/lib, but that didn't work. I've tried ln -s /usr/lib/libfreetype.so.6.3.18 libfreetype.so, I've tried editing the ld.so.conf file.
I'm trying this on an eeepc with Eeebuntu, if that helps.
Help!! I've been trying to get this to work for two days. I don't know what else I can do. Any suggestions?
Thanks much!
Brent
You missing dev librart, install libfreetypeX-dev, in debian lenny it would be apt-get install libfreetype6-dev
sudo apt-get install libfreetype6-dev
I've tried ln -s /usr/lib/libfreetype.so.6.3.18 libfreetype.so
Never do things like that unless you want to break your system and learn how to fix it
These I had to install on Kubuntu 9.04 64 bit in order to get a simple test app to build:
sudo apt-get install libfreetype6-dev
sudo apt-get install libavahi-gobject-dev
sudo apt-get install libSM-dev
sudo apt-get install libXrender-dev
sudo apt-get install libfontconfig-dev
sudo apt-get install libXext-dev
Edit: To get OpenGL to build I also had to install libgl1-mesa-dev and freeglut3-dev.
Edit2: Audio required libphonon-dev.
Thanks a lot! Installing the dev libraries got it to work. there were about five more libraries I had to install as well, but once I got them all, everything compiles just fine. Thanks a lot everyone!
When you did your ln -s /usr/lib/libfreetype.so.6.3.18 libfreetype.so, did you make sure that the libfreetype.so symlink ended up in /usr/lib too? To be sure, run ls -l /usr/lib/libfreetype.so and make sure it says what you expect it to.

Resources