Can't update Raspbian - raspberry-pi3

I've tried using
sudo apt-get update
but it says that the apt-transport-https isn't installed.
Then I tried
sudo apt-get install apt-transport-https
but it tells me to do sudo apt-get update.
Then I try to do
sudo apt full-upgrade
but it says that the packages have unmet dependencies:
apt-transport-https : Depends: libapt-pkg4.12 (>= 1.0.9.8.5) but 1.0.9.8.2 is installed
I try using
sudo apt full-upgrade -f
but error 404 occurs for every file

Related

AWS CodeBuild - 'universe' distribution component is already enabled for all sources but unable to locate package yamllint

When I run this command I have the following output:
[Container] 2023/01/23 10:32:46 Running command sudo apt-get install -y yamllint
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package yamllint
After research I found that the solution for this is the command sudo apt-add-repository -y universe.
So far so good, but a problem occurs when I try to execute this via codebuild(buildspec.yml), the output in the logs is:
[Container] 2023/01/23 10:31:57 Running command sudo apt-add-repository -y universe
'universe' distribution component is already enabled for all sources.
But this is not true, because yamllint is failing afterwards!!
As part of my troubleshooting approach I managed to reproduce and fix the error on my Ubuntu Instance.
If I run sudo apt-get install -y yamllint it fails with E: Unable to locate package yamllint
But whenever I run sudo apt-add-repository -y universe, the output is:
Adding component(s) 'universe' to all repositories.
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
etc.
As a result sudo apt-get install -y yamllint is being installed successfully!
Any idea how to install yamllint via CodeBuild? Why it is saying 'universe' distribution component is already enabled for all sources, while the yamllint package cannot be located?
These are my all buildspec commands and all of them are successfully executed except the last one:
- sudo apt-get install software-properties-common
- sudo apt-add-repository -y universe
- sudo apt-get update -y
- sudo apt-get -y install python3-pip
- sudo apt-get install python3-yaml
- sudo apt-get install -y yamllint
I am struggling a lot with this issue, I am not a Linux guy and may be I am missing something?
Thank you.

How to install Java 8 or higher on Debian 8 given the jessie-backports are no more valid?

I had tried the following two ways but no luck
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update && apt-get install oracle-java8-installer -y
I get error saying
Unable to find the oracle8-java-installer package
I tried openjdk-8-jdk too but no luck
FROM debian:jessie
RUN echo deb-src http://security.debian.org/ jessie/updates main > /etc/apt/sources.list.d/extra_debian.list >> /etc/apt/sources.list.d/extra_debian.list
RUN apt-get update && apt-get install -y openjdk-8-jdk
Step 9/9 : RUN apt-get install -y openjdk-8-jdk
---> Running in eaf2278dd79f
Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-8-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Getting error on ubuntu 10 ec2 server while apt install

sudo apt install tasksel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libopencv-video2.4v5 needs to be reinstalled, but I can't find an archive for it.
I'd recommend : sudo dpkg --remove --force-all libopencv-video* &&
sudo apt-get update
sometimes it needs the machine to be restarted
Also you could try :
apt-get -f install
apt-get autoremove
apt-get purge libopencv-video*
apt-get purge
apt-get clean
if apt didn't work you can also manually download .deb file and install it using dpkg -i file.deb
Note: pick the file based on your ubuntu version and arch
https://packages.ubuntu.com/trusty/i386/libopencv-video2.4

Error in invoking target 'links proc gen_pcscfg' of makefile oracle error in ubuntu

I am using Ubuntu 15.04, I am trying to install Oracle 11G.
before installing the Oracle I have install all the package mention bellow.
sudo apt-get install libaio1
sudo apt-get install libaio-dev
sudo apt-get install unixODBC
sudo apt-get install unixODBC-dev
sudo apt-get install expat
sudo apt-get install sysstat
sudo apt-get install libelf-dev
sudo apt-get install elfutils
sudo apt-get install lsb-cxx
sudo apt-get install pdksh
sudo apt-get install libstdc++5
sudo apt-get install ia32-libs
sudo apt-get install ksh
sudo apt-get install lesstif2
sudo apt-get install alien
sudo apt-get install gcc
sudo apt-get install gawk
sudo apt-get install binutils
sudo apt-get install gawk
sudo apt-get install x11-utils
sudo apt-get install rpm
sudo apt-get install alien
sudo apt-get install lsb-rpm
sudo apt-get install libmotif3
sudo apt-get install lesstif2
sudo apt-get install openssh-server
While installing Oracle I am getting this error
LOG Errors
INFO: /usr/bin/ld: cannot find -lclntsh
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a inside
INFO: collect2: error: ld returned 1 exit status
INFO: /home/varun/app/varun/product/11.2.0/dbhome_1/plsql/lib/ins_plsql.mk:33: recipe for target 'wrap' failed
INFO: make: *** [wrap] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/home/varun/app/varun/product/11.2.0/dbhome_1/plsql/lib/ins_plsql.mk'. See '/home/varun/app/oraInventory/logs/installActions2015-08-27_11-31-03PM.log' for details.
Exception Severity: 1
I really dont have idea how do I resolve this. Searched lot on the net but could not find solution. Does any body have idea how do I FIXED IT
This is an unsupported linux release for oracle 11g. You are pretty much on your own to get this to work. Otherwise check the oracle linux installation guide for supported linux versions and distributions (they are generally redhat based).

how to install apt-get, raspbian

I am doing host target development within scratchbox. And apt-get is not installed in my target raspbian rootfile system.
What is the right apt-get package to use from here for raspbian ?
http://www.apt-get.org/main/
Should i use wget command for .deb package of apt-get ?
http://www.cyberciti.biz/tips/linux-wget-your-ultimate-command-line-downloader.html
http://www.thegeekstuff.com/2009/09/the-ultimate-wget-download-guide-with-15-awesome-examples/#more-1885
dpkg is installed in root filesystem of my target, i have checked it using whereis command
Please suggest, or can you suggest some link for installing apt-get itself. I am not able to find something related to it.
Any reply will be appreciable.
Looks like maybe debian apt package will get you there. I thought apt was just ubuntu but no.
The Raspbian FAQ is here: http://www.raspbian.org/RaspbianFAQ
In it you can grab a list of apps included in Rasbian:
http://archive.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages
You can grab the Raspbian package archive here:
http://archive.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages.gz
Extract it, then use dpkg to install apt-get.
Install Putty.exe and login with putty to your raspbian with ip-adress of your raspbian and you can install apt-get!
Install the following:
sudo apt-get update;
sudo apt-get install gcc;
sudo apt-get install autoconf;
sudo apt-get install libtool;
sudo apt-get install pkg-config;
sudo apt-get install libselinux1-dev;
sudo apt-get install liblockdev1-dev;
sudo apt-get install gawk;
sudo apt-get install g++;
sudo apt-get install c++;
sudo apt-get install libgudev-1.0-dev;
sudo apt-get install libudev-dev;
mkdir -p $HOME/distr/libcec;
wget -P $HOME/distr/libcec https://github.com/Pulse-Eight/libcec/archive/master.zip;
unzip $HOME/distr/libcec/master.zip -d $HOME/distr/libcec/;
cd $HOME/distr/libcec/libcec-master ./bootstrap;"
./configure --with-rpi-include-path=/opt/vc/include --with-rpi-lib-path=/opt/vc/lib --enable-rpi;
make;
sudo make install;
sudo apt-get install cec-utils;
sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot
After the reboot, is everything up-to-date and you have no problems anymore!

Resources