I run the update on Ubuntu 16.04 LTE by :
sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get dist-upgrade
My problem is the :
Lecture des listes de paquets... Fait
W: The repository 'http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/tualatrix/next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
Can you help me ?
Try adding xenial to the repo
echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|sudo tee /etc/apt/sources.list.d/fpco.list
Related
I am trying to auto-deploy the project and npm commands run perfectly but when it goes to a line where pm2 restarts the specific projects, then actions fails.
GitHub Actions Error:
GitHub Actions Error
GitHub Action .yml file content:
yml file
NOTE: This solution is applicable only when you are using an NVM to manage node.js versions
The issue is because of the missing symbolic link for the node and the pm2, here are the commands that you can use to create a symbolic link:
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/pm2" "/usr/local/bin/pm2"
This is because pm2 is not linked, for linking
Access your server via ssh, after that get the path of pm2 by
whereis pm2
You will get the output of your path like
pm2: /home/abhimanyu/.nvm/versions/node/v18.12.1/bin/pm2
Copy the path
link your path now
sudo ln -s "$NVM_DIR/versions/node/v18.12.1/bin/pm2" "/usr/local/bin/pm2"
versions/node/v18.12.1/bin/pm2 is my path your path may be diffrent
lo que pasa es que seguro instalaste todo por NVM lo cual no esta mal, pero para que puedas utilizar pm2 dentro del action de github, lo que tienes que realizar es.
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/pm2" "/usr/local/bin/pm2"
despues de la intalacion para que asi puedas utilizar con sudo el pm2 y de esa forma te funcionara sin problemas
I run into the same issue.
So basically, pm2 is not installed. I found it a bit strange as in my VPS, the pm2 is installed and is running perfectly.
The way I got around with it was to create a bash script in the root directory of my project: pm2_runner.sh, within this file I added:
#!/bin/bash
if ! type pm2 > /dev/null
then
sudo npm install -g pm2 && pm2 start ./app.js --name my_project_name
else
pm2 restart my_project_name
fi
Then in my .yml file inside .github/workflow/, instead of writing:
- run: pm2 restart my_project_name
I added:
- run: chmod +x ./pm2_runner.sh
- run: bash ./pm2_runner.sh
It installed pm2 globally without requesting sudo passord since sudo in github actions runs using passwordless.
I try to install the toolchain of QEMU for risc-v so I follow this tuto https://github.com/riscv/riscv-qemu/wiki but i get this error:
aitmanss#lo-lester-032:~/riscv-gnu-toolchain-rv32i/riscv-qemu$ make install
CHK version_gen.h
install -d -m 0755 "/usr/local/share/doc/qemu"
install -c -m 0644 qemu-doc.html qemu-tech.html "/usr/local/share/doc/qemu"
install: impossible de supprimer '/usr/local/share/doc/qemu/qemu-doc.html': Permission non accordée
install: impossible de supprimer '/usr/local/share/doc/qemu/qemu-tech.html': Permission non accordée
make: *** [Makefile:437: install-doc] Error 1
this part I change the permission but got this error
aitmanss#lo-lester-032:~/riscv-gnu-toolchain-rv32i/riscv-qemu$ sudo chmod 777 /usr/local/share/doc/qemu/qemu-doc.html
aitmanss#lo-lester-032:~/riscv-gnu-toolchain-rv32i/riscv-qemu$ sudo chmod 777 /usr/local/share/doc/qemu/qemu-tech.html
aitmanss#lo-lester-032:~/riscv-gnu-toolchain-rv32i/riscv-qemu$ sudo chmod 777 /usr/local/share/doc/qemu
aitmanss#lo-lester-032:~/riscv-gnu-toolchain-rv32i/riscv-qemu$ make install
CHK version_gen.h
install -d -m 0755 "/usr/local/share/doc/qemu"
install: impossible de modifier les droits de « /usr/local/share/doc/qemu »: Opération non permise
make: *** [Makefile:436: install-doc] Error 1
The errors shown in the console output indicate that you don't have permissions to write to directories where you're trying to install QEMU.
Usually you can first build software and then install it. This is definitely the case with QEMU.
You can build it in your home directory as an ordinary user. Building step does not need any privileges. When you install it under /usr/local you can do it with root privileges, e.g. using sudo make install. Alternatively you can configure it with --prefix pointing somewhere where you have write access, then you'll be able to install it as an ordinary user.
When I try to install mysql verison 8 on ubuntu server (16.04) according to mysql apt repository documentations, after config of my need in dpkg command a file named mysql.list is made in this directory:
/etc/apt/sources.list.d which prevents apt to update and i get this error running command
sudo apt-get update
:
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:3 http://compute.ipeserver.com.clouds.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://compute.ipeserver.com.clouds.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://compute.ipeserver.com.clouds.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:2 http://repo.mysql.com/apt/ubuntu xenial InRelease [5,309 B]
Err:2 http://repo.mysql.com/apt/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Fetched 331 kB in 2s (114 kB/s)
Reading package lists... Done
E: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/xenial/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
when i remove mysql.list file. the issue is solved. So I can't install mysql verison 8 on my server.
I just wanted to re-install the mysql from my ubuntu. So i have purge the mysql but when i am trying to install it. It's show dependencies unmet error.
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.22-0ubuntu0.17.10.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
mysql-testsuite-5.7 : Depends: mysql-server-5.7 (= 5.7.22-0ubuntu0.17.10.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When i try to update it shows:-
sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu artful InRelease
Hit:3 http://security.ubuntu.com/ubuntu artful-security InRelease
Err:4 http://ppa.launchpad.net/canonical-kernel-team/pti/ubuntu artful InRelease
403 Forbidden
Ign:5 http://archive.ubuntu.com/ubuntu trusty InRelease
Hit:6 http://de.archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu trusty Release
Hit:8 http://de.archive.ubuntu.com/ubuntu artful-backports InRelease
Hit:9 http://ppa.launchpad.net/mutlaqja/ppa/ubuntu artful InRelease
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/canonical-kernel-team/pti/ubuntu/dists/artful/InRelease 403 Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
When i try to fix dependency the problem we get is still the same:-
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mysql-server-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-server-5.7
0 upgraded, 1 newly installed, 0 to remove and 105 not upgraded.
3 not fully installed or removed.
Need to get 3,189 kB of archives.
After this operation, 48.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu artful-updates/main amd64 mysql-server-5.7 amd64 5.7.22-0ubuntu0.17.10.1 [3,189 kB]
Fetched 3,189 kB in 0s (14.9 MB/s)
Preconfiguring packages ...
(Reading database ... 158292 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu0.17.10.1_amd64.deb ...
grep: /etc/mysql/: No such file or directory
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.22-0ubuntu0.17.10.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.22-0ubuntu0.17.10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
none of the fix works for me.
Thanks in advance :)
Happy coding
Seems your system is stuck in the process of mysql. Restart your system and run the following code.
sudo apt-get update
sudo apt-get -f install
sudo apt purge -y mysql-server
sudo apt install -y mysql-server
Then you should be prompted by the mysql installer to provide a password and it should work just fine.
I have installed apache2, installed php 7. installed phpmyadmin.
Then i tried to create a database with the user i created. Unfortunately i was not able to create a database because i did not have the right permissions. So i decided to start from scratch and deleted everything (apache2, mysql, php, phpmyadmin).
To delete the MySQL server i used the following commands±
sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
Now I get stuck with the installation of mysql. I think i deleted more then i should have deleted.
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:
mysql-server-5.6 : PreDepends: mysql-common (>= 5.5) but it is not
installable
Depends: libdbi-perl but it is not installable
Depends: mysql-client-5.6 (>= 5.6.35-1+deb.sury.org~xenial+0
.1) but it is not going to be installed
Depends: mysql-common (>= 5.6.22-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
When i use apt-get update:
root#localhost:~# apt-get update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/ondrej/mysql-5.7/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
When i use: sudo apt-get install -f
root#localhost:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get clean : returns nothing
Sudo apt-get -f install:
root#localhost:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
root#localhost:~# sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Because the installation didn´t work and I get stuck with some other errors I also changed the source list file.
I found the solution.
In my case it has to do with my sourcelist file in etc/apt directory.
I updated the file
# deb cdrom:[Ubuntu-Studio 16.04 LTS _Xenial Xerus_ - Alpha amd64 (20151225)]/ xenial main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
Run:
sudo apt-get update
And to apply any updates, run one of the following commands:
sudo apt-get upgrade
See the Answer