Find which image has CVE package fixes

I have a handful of google container images that are flagging musl vulns.

Example: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.13

https://console.cloud.google.com/gcr/images/google-containers/GLOBAL/k8s-dns-kube-dns-amd64?gcrImageListsize=30 lists all available image versions.

How do I attempt to find which image has the fix? Since these are open source I’ve looked in https://github.com/kubernetes/dns. Specifically:

  • https://github.com/kubernetes/dns/blob/master/Dockerfile.kube-dns. Doesn’t seem to show any base image
  • https://github.com/kubernetes/dns/blob/master/Makefile Shows “BUILD_IMAGE ?= golang:1.11-alpine” but that image is quite old and isn’t even listed in https://github.com/docker-library/golang/tree/master where the latest is 1.13

Error trying to solve a 2D elasticity problem using FEM package

I have the following equations $ $ \frac{\partial{N_x}}{\partial{x}}+\frac{\partial{N_{xy}}}{\partial{y}}=0$ $ $ $ \frac{\partial{N_y}}{\partial{y}}+\frac{\partial{N_{xy}}}{\partial{x}}=0$ $ where \begin{equation} \begin{bmatrix}N_{x}\N_{y}\N_{xy}\end{bmatrix}=\begin{bmatrix}A_{11}(x)&A_{12}(x)&0\A_{12}(x)&A_{22}(x)&0\0&0&A_{66}\end{bmatrix}\begin{bmatrix}\frac{\partial{u}}{\partial{x}}\\frac{\partial{v}}{\partial{y}}\\frac{\partial{u}}{\partial{y}}+\frac{\partial{v}}{\partial{x}}\end{bmatrix}\end{equation} $ A_{ij}$ are varies only on $ x$ direction. The boundary conditions are shown bellow. I’m trying to apply the complete panel BCs.

99

Can someone help me to model this problem. I looked the FEM package, but I still can’t solved. Thank you in advance. I’m looking for solution to u(x,y) e v(x,y).

Follow my code:

E1 = 147 10^9; E2 = 10.3 10^9; G12 = 7 10^9; nu12 = 0.27; nu21 = (E2*nu12)/E1; t = 0.127 10^-3; a = 1; b = 1; u0 = -1;  Son = {{1/E1, -nu12/E1, 0}, {-nu21/E2, 1/E2, 0}, {0, 0, 1/G12}}; Qon = Inverse[Son]; angles = {{0, 45}, {0, -45}, {0, -45}, {0, 45}}; num = Dimensions[angles][[1]]; h = num*t; pos = Table[0, num + 1]; pos[[1]] = -h/2; For[i = 2, i <= num + 1, i++, pos[[i]] = pos[[i - 1]] + t;] mA = ConstantArray[0, {3, 3}]; mB = ConstantArray[0, {3, 3}]; mD = ConstantArray[0, {3, 3}];  For[i = 1, i <= num, i++, T0 = angles[[i, 1]] (pi/180); T1 = angles[[i, 2]] (pi/180); theta[x_] = (2/a) (T1 - T0) Abs[x] + T0; m = Cos[theta[x]]; n = Sin[theta[x]]; Q11 = Qon[[1, 1]]; Q12 = Qon[[1, 2]]; Q22 = Qon[[2, 2]]; Q66 = Qon[[3, 3]]; Qxx = m^4*Q11 + n^4*Q22 + 2*m^2*n^2*Q12 + 4*m^2*n^2*Q66; Qyy = n^4*Q11 + m^4*Q22 + 2*m^2*n^2*Q12 + 4*m^2*n^2*Q66; Qxy = m^2*n^2*Q11 + m^2*n^2*Q22 + (m^4 + n^4)*Q12 + -4*m^2*n^2*Q66; Qss = m^2*n^2*Q11 + m^2*n^2*Q22 - 2*m^2*n^2*Q12 + (m^2 - n^2)^2*Q66; Qxs = m^3*n*Q11 - m*n^3*Q22 + (m*n^3 - m^3*n)*Q12 + 2*(m*n^3 - m^3*n)*Q66; Qys = m*n^3*Q11 - m^3*n*Q22 + (m^3*n - m*n^3)*Q12 + 2*(m^3*n - m*n^3)*Q66; Qoff = {{Qxx, Qxy, Qxs}, {Qxy, Qyy, Qys}, {Qxs, Qys, Qss}}; mA = mA + Qoff*(pos[[i + 1]] - pos[[i]]); mB = mB + Qoff*(pos[[i + 1]]^2 - pos[[i]]^2); mD = mD + Qoff*(pos[[i + 1]]^3 - pos[[i]]^3); ]; mB = mB/2; mD = mD/3;  Needs["NDSolve`FEM`"] omega = Rectangle[{-a/2, -b/2}, {a, b}]; mesh = ToElementMesh[omega];  A11[x_] = mA[[1, 1]]; A12[x_] = mA[[1, 2]]; A16[x_] = mA[[1, 3]];  A22[x_] = mA[[2, 2]]; A26[x_] = mA[[2, 3]]; A66[x_] = mA[[3, 3]]; Nx[x_, y_] = A11[x] D[u[x, y], {x, 1}] + A12[x] D[v[x, y], {y, 1}] +               A16[x] (D[u[x, y], {y, 1}] + D[v[x, y], {x, 1}]); Ny[x_, y_] = A12[x] D[u[x, y], {x, 1}] + A22[x] D[v[x, y], {y, 1}] +               A26[x] (D[u[x, y], {y, 1}] + D[v[x, y], {x, 1}]); Nxy[x_, y_] = A16[x] D[u[x, y], {x, 1}] + A26[x] D[v[x, y], {y, 1}] +                A66[x] (D[u[x, y], {y, 1}] + D[v[x, y], {x, 1}]);  PDEs = {D[Nx[x, y], {x, 1}] + D[Nxy[x, y], {x, 1}], D[Ny[x, y], {y, 1}] +          Nxy[x, y], {y, 1}]}; gammaD = {DirichletCondition[u[x, y] == u0, x == a/2],            DirichletCondition[u[x, y] == -u0, x == -a/2]}; NDSolve[{PDEs == {0, 0}, gammaD}, {u,     v}, {x, y} \[Element] mesh]; 

I’m getting the following error:

NDSolve::femcnmd: The PDE coefficient {{0.000508 (-8.22842*10^11 Cos[Times[<<2>>]]^3 Sin[1.5708 Abs[<<1>>]] (Abs^\[Prime])[x]-4.04788*10^10 Cos[1.5708 Abs[<<1>>]] Sin[Times[<<2>>]]^3 (Abs^\[Prime])[x])+0.000254 (<<1>>)+<<1>>+1/2 (-0.001016 (-8.22842*10^11 Power[<<2>>] Sin[<<1>>] (<<1>>^(<<1>>))[<<1>>]-4.04788*10^10 Cos[<<1>>] Power[<<2>>] (<<1>>^(<<1>>))[<<1>>])-0.000508 (2.32093*10^11 Power[<<2>>] (<<1>>^(<<1>>))[<<1>>]-7.45065*10^11 Power[<<2>>] Power[<<2>>] (<<1>>^(<<1>>))[<<1>>]+1.62623*10^10 Power[<<2>>] (<<1>>^(<<1>>))[<<1>>]+1.67953*10^10 Plus[<<3>>])-0.000508 (-2.32093*10^11 Power[<<2>>] (<<1>>^(<<1>>))[<<1>>]+7.45065*10^11 Power[<<2>>] Power[<<2>>] (<<1>>^(<<1>>))[<<1>>]-1.62623*10^10 Power[<<2>>] (<<1>>^(<<1>>))[<<1>>]+1.67953*10^10 Plus[<<3>>])),<<1>>}} does not evaluate to a numeric matrix of dimensions {1,2} at the coordinate {-0.4625,-0.4625}; it evaluated to {{0.,5.79879*10^6 (Abs^\[Prime])[-0.4625]}} instead. 

Can someone help me? Thank you all in advance.

200+ All In One SEO Package Quality Backlinks To Boost Ranking for $30

This service will offer you 200 High Quality permanent ALL IN ONE SEO package. It will bosst SEO ranking of your website. Get 1st page SEO ranking. What We Offer To You: 200+ Highly Diversified Links:Web 2.0 Blog Links (MIX) High DA Profile Links (MIX)Edu/Gov Links (MIX)Forum Profile Links (MIX)Article Submission Links (MIX)Wiki Quality Links (MIX)PDF High Permanent Links (MIX)Social Bookmarking Links (MIX)Relevant Spun Content Provided (500+ Words) + Images (MIX)Contextual and Non-Contextual Links (MIX)Detailed Live Report (MIX) All links are Google Panda & Penguin Safe! 2019 SEO service. Free Ping Of All Links For Faster Index. Over Delivery Of Submissions Backlinks Delivery In 5 Days. Full Refund If Not Delivered.

by: ranktechno
Created: —
Category: Link Building
Viewed: 159


How do I search for a package?

I understand that this sounds like a ridiculous question but here is what I am trying to do: Install the apache http server.

So I run apt search apache and get a ton of results.

Actually… apt search apache | wc -l and dividing by 3 – I seem to get about 700 results.

  1. I can try to narrow this down using apt search apache http and then I get about 200 results and then I can scroll a lot and it will eventually turn up.

  2. I can also use apt search --names-only apache and at least exclude all those things that only mention apache in the description. That brings it down to 110 results.

All of this seems pretty complicated and tedious given that the package that I am looking for is called “apache2”. Is there some way to get a best fit sorting of results? Or some other tool I should use?

how to update sudo package version

with the news of the vulnerability found in sudo versions prior to 1.8.28, I am trying to upgrade to that version, but have had no luck. I did sudo apt-get update and sudo apt-get upgrade and sudo continues to be at the same version. Even tried sudo apt-get upgrade sudo and it says it’s at the latest, which cannot be entirely true since 1.8.28 was released earlier today.

How does one typically go about updating packages using apt-get to latest versions?

Bash File Unable to locate package when new line is added

When building a bash file to execute I keep getting an error after adding a new line. I have tried moving some lines around or removing some of the packages but it will results in the same error. In the file if I was to remove 3 and 4 it there will no longer be an error.

E: Unable to locate package <package> 

The bash file looks like this

#!/usr/bin/env bash sudo apt update && sudo apt install -y python3-pip build-essential python3-dev python3-setuptools gcc sshpass sudo apt-get install apt-transport-https lsb-release software-properties-common dirmngr sudo apt-get update 

The output with the error

Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                   Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                             Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]         Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                       Fetched 252 kB in 1s (189 kB/s)     Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package sshpass Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package dirmngr Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                   Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                             Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]         Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                       Fetched 252 kB in 1s (209 kB/s)     Reading package lists... Done 

Unable to locate package flameshot

I tried to install flameshot but got an error saying unable to locate package flameshot

(base) kong:~$   sudo apt install flameshot [sudo] password for kong:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package flameshot 

I am using ubuntu version 16.04

(base) kong:~$   lsb_release -a LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description:    Ubuntu 16.04.6 LTS Release:    16.04 Codename:   xenial 

How to remove all traces of a package on uninstallation?

I’ve developed a package that I’m manually installing on Ubuntu systems (using gdebi). When uninstalling using:

sudo dpkg --purge <package-name> 

I’m getting the warnings:

dpkg: warning: while removing <package-name>, directory '/opt/<package-name>' not empty so not removed  dpkg: warning: while removing <package-name>, directory '/var/log/<package-name>' not empty so not removed 

I would like to cleanly uninstall all the files from the system, and the directories I’m getting the warning for are only created by/used by my package. Is there a way to force-remove them (and is that a bad idea)?

I’ve thought about removing the directories in my postrm script but I’m not sure if that’s the best approach. Any advice would be appreciated!