apt-get can't find postfix installation candidate on raspberry pi 3 (stretch) - raspberry-pi

I'm trying to install the MTA postfix on my raspberry pi 3 (stretch)
What I did:
sudo apt-get update
-> updates without error
sudo apt-get install postfix libsasl2-modules bsd-mailx
-> error: can not find installation canidates
My etc/apt/sources.list.d files:
ajenti.list
nodesource.list
raspi.list
in raspi.list:
deb http://archive.raspberrypi.org/debian/ stretch main ui staging
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ stretch main ui
What else did I try:
sudo apt-get upgrade to install the newest sources.
login as pi and as root
tested that the internet-connection works correctly
googled for a solution
The pi is running nginx as a reverse proxy and ajenti as a admin-panel
Thanks in advance for constructive feedback!

Found the solution myself:
in /etc/apt the sources.list-file (not the directory "sources.list.d") was missing. So I added a new file, named sources.list and put
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
in it. apt-get install could find the install canidates then.

Related

Can not install pgadmin4 in ubuntu based distribution

Seems there is an issue while installing pgadmin4 for postgress db. I tried to follow these instructions but at the end I get
Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
Does anybody know what is the issue ?
I am using Pop Os 20.04
Ubuntu expects repositories to have all architectures by default. As there are no packages for i386 this results in the error you're seeing.
To fix this, you have to tell apt which architectures to expect, so your pgdg.list should look like this:
deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt NAME-pgdg main
NAME would be the output of lsb_release -cs.
Note 2020-05-05: Judging from your distro name, it's based on Ubuntu 20.04. There are no pgAdmin4-packages for focal yet. Installing from the eoan repo fails because of missing libpython3.7 :(
You need to edit your pgdg.list file in /etc/apt/sources.list
there is a line in the file thats says : deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
change it to deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main save the file and all you have to do now is a : sudo apt update && sudo apt upgrade

Problem Installing mysql-workbench on ubuntu 19.04

It says it is not available in any source. Tried using the debian provided by oracle. It says libssl versions are incompatible. Any help in this regard.
Now, mysql workbench is available for ubuntu 19.04.
You can manually install after downloading the file.
Step 1:
Direct download link-
https://dev.mysql.com/downloads/file/?id=488567
OR
Visit here select your OS then download as per OS version
https://dev.mysql.com/downloads/workbench/
Step 2:
sudo apt install file_path_of_downloaded_workbench
Finish!!
I solved this problem by installing the libzip package, directly from the deb package. I found at https://ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/libzip4_1.1.2-1.1_amd64.deb.html. Download and install libzip4, then install mysql-workbench from the apt or deb package, whichever you prefer.
on Ubuntu 19
1)I had to, preceding it on Ubuntu 19, also install manually a library libzip https://ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/libzip4_1.1.2-1.1_amd64.deb.html
2) then manually selecting on a download page deb package for mysql workbench https://dev.mysql.com/downloads/workbench/
then install deb packages via a standard apt installer in a Downloads dir
sudo apt install ./libzip4_1.1.2-1.1_amd64.deb
and downloaded workbench deb package
sudo apt install ./mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
You can download the source code from https://dev.mysql.com/downloads/workbench/, compile it and install it. I did it that way and it works perfectly for me. I had to install several package dependencies and review some basic compiler details, but in the end the result was successful. Follow the INSTALL file instructions and consider removing the Werror option from the CMakeLists.txt. Download antlr-4.7.1-complete.jar from web, and then run:
cmake -Wno-dev -DWITH_ANTLR_JAR='path_to_antlr-4.7.1-complete.jar' -Wno-error
make
sudo make install
screenshoot 1
screenshoot 2
UBUNTU 19.04 disco dingo -> mysql-workbench install steps:
add mysql complete source list from: https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
install libs: sudo apt-get install libgtkmm-3.0 libpcre++*
add debian source list on "/etc/apt/sources.list" :
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y
sudo apt-get install mysql-utilities mysql-common mysql-community*
sudo apt-get install mysql-workbench (finish!!)
works here!
Latest version of workbench does not support Ubuntu 19.04 and version for 19.10 will not work.
You have to download specific workbench version supported by 19.04 from the archive.
Visit https://downloads.mysql.com/archives/workbench/
Select product version 8.0.17,
download and install package mysql-workbench-community_8.0.17-1ubuntu19.04_amd64.deb
check out gdebi
gdebi is a tool resolving & installing dependencies, for more info http://manpages.ubuntu.com/manpages/bionic/man1/gdebi.1.html
1) Install libzip4
curl -OL http://launchpadlibrarian.net/260671111/libzip4_1.1.2-1.1_amd64.deb
sudo dpkg -i libzip4_1.1.2-1.1_amd64.deb
2) Then install MySQL workbench on Ubuntu 19.04 by running the commands:
curl -OL https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-
community_8.0.16-1ubuntu18.04_amd64.deb
sudo dpkg -i mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
3) Install missing dependencies (libatkmm-1.6-1v5, libglibmm-2.4-1v5, libgtk2.0-0, libgtkmm-3.0-1v5, libpcrecpp0v5, libpython2.7, libsigc++-2.0-0v5, libtinfo5) by this command.
sudo apt --fix-broken install
Hope this helps.
Download the .deb file from here
Install it using command
dpkg -i *.deb。
Now MYSQL-WORKBENCH for Ubuntu-19.04(Disco) is available.
To install mysql workbench form command line you need add dependencies manually.
Edit your /etc/apt/sources.list and Append following lines:
deb http://security.ubuntu.com/ubuntu cosmic-security main
deb http://cz.archive.ubuntu.com/ubuntu cosmic main universe
sudo apt-get update
Download mysql-workbench from 'Mysql Workbench-19.04 for Ubuntu' and install by giving execute permission to mysql-workbench-community_8.0.17-1ubuntu19.04_amd64.deb file.
Now it should work. :)

Setting up a Movesense development environment on Linux

I followed an instruction to set up a Movesense development environment, "Manual setup on Linux", from Suunto / Movesense-community / Movesense-device-lib, README.md
However, I got stuck at sudo apt-get install gcc-arm-embedded:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-arm-embedded
How can I move forward?
I used Ubuntu 17.10 (Artful Aardvark) as a guest OS.
Try adding the repository:
sudo apt-get remove gcc-arm-none-eabi gdb-arm-none-eabi binutils-arm-none-eabi
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
I downloaded it directly from ARM IIRC:
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Following the instructions under "GNU/Linux" in the "GNU ARM Embedded Toolchain" section of
https://gnu-mcu-eclipse.github.io/toolchain/arm/install/#gnu-arm-embedded-toolchain
Summarized:
// Get some support dependencies for 32 bit running on 64-bit machines
// Check toolchain README for actual list.
$ sudo apt-get -y install lib32z1 lib32ncurses5 lib32bz2-1.0
// Install the toolchain
$ mkdir -p "${HOME}"/opt
$ cd "${HOME}"/opt
$ tar xjf ~/Downloads/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
$ chmod -R -w "${HOME}"/opt/gcc-arm-none-eabi-7-2017-q4-major
You will likely have to modify some of the build files in the Movesense project to point to this location for it to build.
The following might also be helpful: How to install a functional ARM cross-GCC toolchain on Ubuntu 18.04 (Bionic Beaver)
I had some trouble installing it on a Windows machine and tried out Vagrant. This makes the development environment highly movable and in sync if you have multiple developers working on the project.

How to install postgresql on Ubuntu 16.04 VM despite "unmet dependencies" to set up Ruby on Rails project

Ubuntu 16.04 on VirtualBox VM using Vagrant.
Windows 10 host.
Git Bash terminal.
Connected to vagrant up, vagrant ssh.
I have a fresh VM and have installed ruby and rails. I am trying to install postgresql to use for a Ruby on Rails project, but I get the following error:
vagrant#vagrant-ubuntu-trusty-64:~$ sudo apt-get install postgresql postgresql-contrib
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
postgresql : Depends: postgresql-9.6 but it is not going to be installed
postgresql-contrib : Depends: postgresql-contrib-9.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I've tried various things, and nothing seems to let me install postgres
I was facing same problem in my ubuntu 16.04
but i fixed that problem and it's very simple just follow these step and you will be able to install postgresql 10 in your system :
Add this to your sources.list:
sudo vim /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.de.debian.org/debian/ wheezy main non-free contrib
after that add these link to your pgdg.list file if it's not there you have to create and add link and save it.
sudo vim /etc/apt/sources.list.d/pgdg.list
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
then update your system
sudo apt-get update
sudo apt-get upgrade
and install that unmet dependencies :
apt-get install ssl-cert
that's it. now Install postgresql using these command
sudo apt-get install postgresql-10
#JosMac pointed out that I am running Ubuntu 14.04 instead of 16.04 as I had thought.
I was still running into similar errors, but I just ended up installing the rails-dev-box (https://github.com/rails/rails-dev-box) way which uses yakkety64, and seems to work.

Raspberry Pi crosscompile on Ubuntu 13.10 "libstdc++.so.6" not found

I've followed the tutorial on SE as well as trying the extra steps from Hertaville and bootc but I still get the error that prompted the original SE question. I'm stumped.
I get five steps into the process before I get the error:
sudo apt-get install git rsync cmake lib32z1 lib32ncurses5 lib32bz2-1.0
git clone git://github.com/raspberrypi/tools.git
export PATH=$PATH:$HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
. ~/.bashrc
arm-linux-gnueabihf-gcc -v
Error:
arm-linux-gnueabihf-gcc: error while loading shared libraries:
libstdc++.so.6: cannot open shared object file: No such file or directory
libstdc++.so.6 is present in all three directory trees mentioned in the tutorials as well as ./lib/x86_64-linux-gnu/libstdc++.so.6, but adding the relevant one to the path doesn't help (see below). I suspect there's a library path not being set, but I have no idea what that is.
I'm doing this in a virtual machine running Ubuntu 13.10 with netbeans and other tools, plus a LAMP stack installed. netbeans will build and run C/C++ executables just fine (and obviously IO can do the same from the command line).
Other things I've tried without success
export PATH=$PATH:$HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/lib
Hertaville suggest adding 32 bit architecture:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6-i386 lib32stdc++6 zlib1g:i386
And the "build-essential" package:
sudo apt-get install build-essential git
Which also didn't help. I've also rebooted just in case.
As expected the answer is trivial - install lib32stdc++6
The first line above should read:
sudo apt-get install libc6-i386 lib32z1 lib32stdc++6