Why do I still get "N: See apt-secure(8) manpage for repository creation and user configuration details." weeks after - ubuntu-20.04

Few weeks ago I tried to install an IDM replica on Ubuntu 20.04 from Focal. However I got an error and from ever since, whenever I run "Sudo apt update" the same error returns.
Err:17 http://ppa.launchpad.net/noobslab/apps/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/noobslab/apps/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Screenshot of the terminal

sudo apt clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt update

Related

After system upgrade from ubuntu 20.04 LTS to ubuntu 22.04.1 LTS firefox error when doing `sudo apt --fix-broken install`

After upgrade from ubuntu 20.04 LTS to 22.04.1 LTS, I got a very persistent error:
(Reading database ... 350976 files and directories currently installed.)
Preparing to unpack .../firefox_1%3a1snap1-0ubuntu2_amd64.deb ...
=> Installing the firefox snap
==> Checking connectivity with the snap store
==> Installing the firefox snap
error: cannot perform the following tasks:
- Run hook connect-plug-host-hunspell of snap "firefox" (run hook "connect-plug-
host-hunspell": cannot perform operation: mount --rbind /var/log /tmp/snap.rootf
s_hE2Zj1//var/log: Permission denied)
dpkg: error processing archive /var/cache/apt/archives/firefox_1%3a1snap1-0ubunt
u2_amd64.deb (--unpack):
new firefox package pre-installation script subprocess returned error exit stat
us 1
Please restart all running instances of firefox, or you will experience problems
.
Errors were encountered while processing:
/var/cache/apt/archives/firefox_1%3a1snap1-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
This
- Run hook connect-plug-host-hunspell of snap "firefox" (run hook "connect-plug-
host-hunspell": cannot perform operation: mount --rbind /var/log /tmp/snap.rootf
s_hE2Zj1//var/log: Permission denied)
was very persistent and was hindering any apt-involved installations.
Thus, no apt install nor apt upgrade was working.
After long search and trying around,
where I did:
sudo apt --fix-broken install
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo dpkg --configure -a
And then, cave(!) this removes firefox from your installed package list
and thus after this command you cannot use firefox any more on your computer
until you install it - so I did that - but I had a second computer
where I could google around while I had no firefox on that machine.
I couldn't install chromium browser or other browsers, because apt was not working! So run this command only when you have a second computer or at least your mobile to surf for instructions!
sudo dpkg --force depends -P firefox
I found a hint in
https://forums.mozillazine.org/viewtopic.php?f=38&t=3097766
My solution was:
# Add Mozilla Team PPA
sudo add-apt-repository ppa:mozillateam/ppa
# Set PPA priority
sudo gedit /etc/apt/preferences.d/mozillateamppa
# The command creates and opens empty config file in Gedit text editor.
# When it opens, add the lines below and save it:
Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 501
save and close that file.
after that, I could do finally:
sudo apt --fix-broken install
# and then:
sudo apt update && sudo apt upgrade
and then, all apt or snap commands were working again flawlessly.
note:
Now, I encounter
sudo apt install chromium-browser
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
chromium-browser
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/48,4 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 313313 files and directories currently installed.)
Preparing to unpack .../chromium-browser_1%3a85.0.4183.83-0ubuntu2_amd64.deb ...
=> Installing the chromium snap
==> Checking connectivity with the snap store
==> Installing the chromium snap
error: cannot perform the following tasks:
- Run configure hook of "chromium" snap if present (run hook "configure": cannot perform operation: mount --rbind /var/log /
tmp/snap.rootfs_Gg42mE//var/log: Permission denied)
dpkg: error processing archive /var/cache/apt/archives/chromium-browser_1%3a85.0.4183.83-0ubuntu2_amd64.deb (--unpack):
new chromium-browser package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/chromium-browser_1%3a85.0.4183.83-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried:
sudo add-apt-repository ppa:xtradeb/apps
sudo gedit /etc/apt/preferences.d/xtradebppa
# content:
Package: chromium*
Pin: release o=LP-PPA-xtradeb
Pin-Priority: 501
But this didn't help.
Finally, I found out the solution!
In former days, when my / containing system partition was too full, I sym-linked /var/log. I linked it to somehwere in my home folder. But then, I moved snap back.
- Run hook connect-plug-host-hunspell of snap "firefox" (run hook "connect-plug-
host-hunspell": cannot perform operation: mount --rbind /var/log /tmp/snap.rootf
s_hE2Zj1//var/log: Permission denied)
The permission was denied, because it tried to mount to a symlink.
All I had to do was:
sudo rm /var/log
sudo mkdir -p /var/log
Now, it is not a symlink any more. So it can actually mount to it.

How can I insert a word inside a command in Linux?

Now, I have a simple file that runs every time I open my Gitpod(cloud env). I am making a file so that I can access it via ngrok. But, I need some packages, like wget, unzip and neofetch(for my ease). But it opens in a different terminal and I have to enter y every time. Is there a way to put y in the command and it will install automatically?
Source code for the file:
#!/bin/bash
sudo apt update
sudo apt install wget unzip openssh-server neofetch -y
sudo service ssh start
echo "Set Password for Gitpod as gitpod"
sudo passwd gitpod
wget "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip"
unzip "ngrok-stable-linux-amd64.zip"
echo "I need your ngrok auth token. Enter it below."
read -p "ngrok authtoken:" authtoken
./ngrok authtoken $authtoken
echo "Authtoken activated, now activating server..."
./ngrok tcp 22
sudo apt install wget unzip openssh-server neofetch -y
Have I put correctly in this line? If this works, whenever I get a cloud environment, it could just install all deps and go ahead.
Output:
NOT an answer, an output.
The fish shell I like and use's output:
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
gitpod#ws-588be66f-373e-46f0-8342-5d39b8c863f4 /w/coder-lg-blog-codedoc (master)> sh .gitpod/ngrok.sh
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
Hit:5 https://deb.nodesource.com/node_16.x focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 https://apt.llvm.org/focal llvm-toolchain-focal InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
107 packages can be upgraded. Run 'apt list --upgradable' to see them.
.gitpod/ngrok.sh: 5: y: not found
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Yeah its a cloud Gitpod env for my blog and I want SSH tunneled via ngrok but it says this:
/repo > .gitpod/ngrok.sh: 5: y: not found
How can I fix this? The mod deleted the last output so please don't delete this! It is mainly an output of the Gitpod Terminal.
You can add an echo command in your script and use this as a standard input for your next command.
echo y | [next-command]
Please don't delete.
By #Biffen and this is the solution!
That error doesn’t look like the result of the code in the question. Are you running the strange suggestion in one of the answers; | y? That won’t work. Have a look at this.
Thanks to everyone who helped here, and I am marking this as answer, because Biffen's reply was a comment.
Edit: In 2 days as of now, I can mark this as answer, because, Stack Overflow said so.

Debian Stretch update issue

I am trying to keep updated my debian stretch on my laptop.
When i run this command
apt-get update && apt-get upgrade
it shows following output
Reading package lists... Done
E: The repository 'http://ftp.us.debian.org/debian stretch Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ftp.us.debian.org/debian stretch-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Here is my sources.list
deb http://ftp.us.debian.org/debian/ stretch main
deb-src http://ftp.us.debian.org/debian/ stretch main
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
As stands in the apt-secure manpage:
Starting with version 0.6, APT contains code that does signature checking of the Release file for all repositories.
This means that if apt cannot verify the signatures it wont go on. It will only update if you specify --allow-unauthenticated in apt like this:
sudo apt-get --allow-unauthenticated update

Unable to install fedy on Fedora 22

I am following this guide:- Here
In short it tells to do following:-
Download the latest version using the command:
wget http://satya164.github.io/fedy/fedy-installer
Set executable permission and install as shown below:
chmod +x fedy-installer
sudo ./fedy-installer
To install Fedy on Fedora 22.
But I am getting the following error.
[root#localhost Downloads]# sudo ./fedy-installer
Adding repositories...
Installing fedy...
Failed to synchronize cache for repo 'ozonos' from 'http://goodies.ozon-os.com/repo/22/': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Last metadata expiration check performed 1:27:26 ago on Fri Jul 24 14:11:58 2015.
No package fedy available.
Error: no package matched: fedy
I tried opening goodies.ozon-os.com/repo/22/ but it is not opening on my firefox browser....is there another way to install fedy on fedora 22?
Thank you.
To install fedy, try the steps provided here: http://folkswithhats.org/
The host site for Ozon OS repository (http://goodies.ozon-os.com/) seems to be down, probably permanently, not sure if it has been moved or abandoned. It's no longer needed for upgrading fedy.
You can either remove the repo from your list...
rm -f /etc/yum.repos.d/ozonos.repo
...or, if still unsure, just disable it
dnf config-manager --set-disabled ozonos
bash -c 'su -c "curl http://folkswithhats.org/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"'

How can i install hudson on ubuntu 10.10

When i try t install, i get error:
aptitude install hudson
The following NEW packages will be installed:
hudson
0 packages upgraded, 1 newly installed, 0 to remove and 279 not upgraded.
Need to get 38.8MB of archives. After unpacking 39.7GB will be used.
WARNING: untrusted versions of the following packages will be installed!
Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.
hudson
Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
Get:1 http://hudson-ci.org/debian/ binary/ hudson 1.397 [38.8MB]
Fetched 1B in 0s (2B/s)
E: Failed to fetch http://hudson-ci.org/debian/binary/hudson_1.397_all.deb: Size mismatch
apt-get clean
apt-get update
apt-get install hudson
this should work.
This question is probably best posted to serverfault.com; but regardless; it appears the mirror you are using is busted and you most likely downloaded an error page (which is why the failure). Try doing an update for your repository to get the latest mirror information.
apt-get update
execute aptitude update first
I had the same problem.
I followed the steps here: http://makeitfaster.wordpress.com/2010/12/14/install-the-hudson-build-server-on-ubuntu-10-10-server/
Which then also failed at the "sudo dpkg --install /tmp/hudson.deb" line. Then I did this:
aptitude install openjdk-6-jre
At which point hudson finished installing and came on line.
I've got the same problem...
Need to get 38.8MB of archives. After
this operation, 39.7GB of additional
disk space will be used. WARNING: The
following packages cannot be
authenticated!
hudson Install these
packages without verification [y/N]? y
Get:1 http://hudson-ci.org/debian/
binary/ hudson 1.397 [38.8MB] Fetched
38.8MB in 59s (655kB/s)
Failed to fetch
http://hudson-ci.org/debian/binary/hudson_1.397_all.deb
Size mismatch E: Unable to fetch some
archives, maybe run apt-get update or
try with --fix-missing?
I have done
apt-get clean
apt-get update
apt-get install hudson
as root.
Still don't understand what the size mismatch is - I can't see any errors downloaded.
The main difference between me and the original poster is that I am downloading 38.8MB, but it still reports the wrong size.

Resources